public class InflaterInputStream extends FilterInputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected static int |
DEFAULT_BUFSIZE |
protected Inflater |
inflater |
protected boolean |
myinflater |
in| Constructor and Description |
|---|
InflaterInputStream(InputStream in) |
InflaterInputStream(InputStream in,
boolean nowrap) |
InflaterInputStream(InputStream in,
Inflater inflater) |
InflaterInputStream(InputStream in,
Inflater inflater,
int size) |
InflaterInputStream(InputStream in,
Inflater inflater,
int size,
boolean close_in) |
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream.
|
void |
close()
Closes this input stream and releases any system resources associated with the stream.
|
protected void |
fill() |
byte[] |
getAvailIn() |
Inflater |
getInflater() |
long |
getTotalIn() |
long |
getTotalOut() |
void |
mark(int readlimit)
Marks the current position in this input stream.
|
boolean |
markSupported()
Tests if this input stream supports the mark and reset methods.
|
int |
read()
Reads the next byte of data from the input stream.
|
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from the input stream into an array of bytes.
|
void |
readHeader() |
void |
reset()
Repositions this stream to the position at the time the mark method was last called on this input stream.
|
long |
skip(long n)
Skips over and discards n bytes of data from this input stream.
|
readprotected final Inflater inflater
protected byte[] buf
protected static final int DEFAULT_BUFSIZE
protected boolean myinflater
public InflaterInputStream(InputStream in) throws IOException
IOExceptionpublic InflaterInputStream(InputStream in, boolean nowrap) throws IOException
IOExceptionpublic InflaterInputStream(InputStream in, Inflater inflater) throws IOException
IOExceptionpublic InflaterInputStream(InputStream in, Inflater inflater, int size) throws IOException
IOExceptionpublic InflaterInputStream(InputStream in, Inflater inflater, int size, boolean close_in) throws IOException
IOExceptionpublic int read()
throws IOException
InputStreamread in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
InputStreamread in class FilterInputStreamIOExceptionpublic int available()
throws IOException
InputStreamavailable in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
InputStreamskip in class FilterInputStreamIOExceptionpublic void close()
throws IOException
InputStreamclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionprotected void fill()
throws IOException
IOExceptionpublic boolean markSupported()
InputStreammarkSupported in class FilterInputStreampublic void mark(int readlimit)
InputStreammark in class FilterInputStreampublic void reset()
throws IOException
InputStreamreset in class FilterInputStreamIOExceptionpublic long getTotalIn()
public long getTotalOut()
public byte[] getAvailIn()
public void readHeader()
throws IOException
IOExceptionpublic Inflater getInflater()