GZIPInputStream

public class GZIPInputStream extends InflaterInputStream

This class implements a stream filter for reading compressed data in the GZIP file format.

Constant Summary

int GZIP_MAGIC GZIP header magic number.

Field Summary

protected CRC32 crc CRC-32 for uncompressed data.
protected boolean eos Indicates end of input stream.

Inherited Field Summary

Public Constructor Summary

GZIPInputStream(InputStream in, int size)
Creates a new input stream with the specified buffer size.
GZIPInputStream(InputStream in)
Creates a new input stream with a default buffer size.

Public Method Summary

void
close()
Closes this input stream and releases any system resources associated with the stream.
int
read(byte[] buf, int off, int len)
Reads uncompressed data into an array of bytes.

Inherited Method Summary