API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.zip. GZIPInputStream View Source
Author(s)
David Connelly
Since
Version
1.33, 04/07/06
Serial
Hierarchy
 Object
      InputStream
          FilterInputStream
              InflaterInputStream
                  GZIPInputStream
Implements
Subclasses
Description
public class GZIPInputStream
  This class implements a stream filter for reading compressed data in the GZIP file format.
See also:    InflaterInputStream
Constructors
public GZIPInputStream (InputStream in) throws IOException
  Creates a new input stream with a default buffer size.
public GZIPInputStream (InputStream in, int size) throws IOException
  Creates a new input stream with the specified buffer size.
Methods
Hide/Show inherited methods
public int available () throws IOException [Inherited From InflaterInputStream]
  Returns 0 after EOF has been reached, otherwise always return 1.
public void close () throws IOException [Overrides InflaterInputStream]
  Closes this input stream and releases any system resources associated with the stream.
protected void fill () throws IOException [Inherited From InflaterInputStream]
  Fills input buffer with more data to decompress.
publicsynchronized void mark (int readlimit) [Inherited From InflaterInputStream]
  Marks the current position in this input stream.
public boolean markSupported () [Inherited From InflaterInputStream]
  Tests if this input stream supports the mark and reset methods.
public int read () throws IOException [Inherited From InflaterInputStream] [Specified in InputStream]
  Reads a byte of uncompressed data.
public int read (byte[] b) throws IOException [Inherited From FilterInputStream]
  Reads up to byte.length bytes of data from this input stream into an array of bytes.
public int read (byte[] buf, int off, int len) throws IOException [Overrides InflaterInputStream]
  Reads uncompressed data into an array of bytes.
publicsynchronized void reset () throws IOException [Inherited From InflaterInputStream]
  Repositions this stream to the position at the time the mark method was last called on this input stream.
public long skip (long n) throws IOException [Inherited From InflaterInputStream]
  Skips specified number of bytes of uncompressed data.
Fields
Hide/Show inherited fields
protected byte buf [Inherited From InflaterInputStream]
Input buffer for decompression.
protected CRC32 crc
CRC-32 for uncompressed data.
protected boolean eos
Indicates end of input stream.
publicfinalstatic int GZIP_MAGIC = "35615"
GZIP header magic number.
protectedvolatile InputStream in [Inherited From FilterInputStream]
The input stream to be filtered.
protected Inflater inf [Inherited From InflaterInputStream]
Decompressor for this stream.
protected int len [Inherited From InflaterInputStream]
Length of input buffer.
pack-private boolean usesDefaultInflater [Inherited From InflaterInputStream]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar