| java.util.zip.InflaterInputStream java.util.zip.GZIPInputStream
GZIPInputStream | public class GZIPInputStream extends InflaterInputStream (Code) | | The GZIPInputStream class is used to read data stored in the GZIP format.
|
Field Summary | |
final public static int | GZIP_MAGIC Value of GZIP header magic number. | protected CRC32 | crc | protected boolean | eos |
Method Summary | |
public void | close() Closes this stream and any underlying streams. | public int | read(byte[] buffer, int off, int nbytes) Reads and decompresses GZIP data from the underlying stream into the
given buffer. |
GZIP_MAGIC | final public static int GZIP_MAGIC(Code) | | Value of GZIP header magic number.
|
eos | protected boolean eos(Code) | | |
GZIPInputStream | public GZIPInputStream(InputStream is) throws IOException(Code) | | Construct a GZIPInputStream to read from GZIP data from the underlying
stream
Parameters: is - InputStream to read data from throws: IOException - if an IO error occurs reading the stream |
GZIPInputStream | public GZIPInputStream(InputStream is, int size) throws IOException(Code) | | Construct a GZIPInputStream to read from GZIP data from the underlying
stream. Set the internal buffer size to size
Parameters: is - InputStream to read data from Parameters: size - Internal read buffer size throws: IOException - if an IO exception occurs reading the stream |
close | public void close() throws IOException(Code) | | Closes this stream and any underlying streams.
|
read | public int read(byte[] buffer, int off, int nbytes) throws IOException(Code) | | Reads and decompresses GZIP data from the underlying stream into the
given buffer.
Parameters: buffer - Buffer to receive data Parameters: off - Offset in buffer to store data Parameters: nbytes - Number of bytes to read |
|
|