java.util.zip
public class InflaterInputStream extends FilterInputStream
GZIPInputStream
.
Since: 1.1
Field Summary | |
---|---|
protected byte[] | buf
Byte array used as a buffer |
protected Inflater | inf
Decompressor for this filter |
protected int | len
Size of buffer |
Constructor Summary | |
---|---|
InflaterInputStream(InputStream in)
Create an InflaterInputStream with the default decompresseor
and a default buffer size.
| |
InflaterInputStream(InputStream in, Inflater inf)
Create an InflaterInputStream with the specified decompresseor
and a default buffer size.
| |
InflaterInputStream(InputStream in, Inflater inf, int size)
Create an InflaterInputStream with the specified decompresseor
and a specified buffer size.
|
Method Summary | |
---|---|
int | available()
Returns 0 once the end of the stream (EOF) has been reached.
|
void | close()
Closes the input stream |
protected void | fill()
Fills the buffer with more data to decompress. |
void | mark(int readLimit) |
boolean | markSupported() |
int | read()
Reads one byte of decompressed data.
|
int | read(byte[] b, int off, int len)
Decompresses data into the byte array
|
void | reset() |
long | skip(long n)
Skip specified number of bytes of uncompressed data
|
Parameters: in the InputStream to read bytes from
Parameters: in the InputStream to read bytes from inf the decompressor used to decompress data read from in
Parameters: in the InputStream to read bytes from inf the decompressor used to decompress data read from in size size of the buffer to use
Parameters: b the array to read and decompress data into off the offset indicating where the data should be placed len the number of bytes to decompress
Parameters: n number of bytes to skip