public class GZIPInputStream extends InflaterInputStream
Modifier and Type | Field and Description |
---|---|
protected CRC32 |
crc |
protected boolean |
eos |
static int |
GZIP_MAGIC |
buf, inf, len
in
Constructor and Description |
---|
GZIPInputStream(InputStream instr) |
GZIPInputStream(InputStream instr,
int readsize) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the input stream.
|
int |
read(byte[] buffer,
int offset,
int length)
Reads up to
nbytes of decompressed data and stores it in
buffer starting at off . |
available, fill, read, skip
mark, markSupported, read, reset
public static final int GZIP_MAGIC
protected CRC32 crc
protected boolean eos
public GZIPInputStream(InputStream instr) throws IOException
IOException
public GZIPInputStream(InputStream instr, int readsize) throws IOException
IOException
public void close() throws IOException
InflaterInputStream
close
in class InflaterInputStream
IOException
- If an error occurs closing the input stream.public int read(byte[] buffer, int offset, int length) throws IOException
InflaterInputStream
nbytes
of decompressed data and stores it in
buffer
starting at off
.read
in class InflaterInputStream
buffer
- the buffer to write data to.offset
- offset in buffer to start writing.length
- number of bytes to read.IOException
- if an IOException occurs.