| java.lang.Object java.io.InputStream java.io.FilterInputStream java.util.zip.InflaterInputStream
All known Subclasses: java.util.zip.GZIPInputStream, java.util.zip.ZipInputStream,
Method Summary | |
public int | available() Returns 0 if this stream has been closed, 1 otherwise. | public void | close() | protected void | fill() | public void | mark(int readlimit) Marks the current position in the stream. | public boolean | markSupported() Answers whether the receiver implements mark semantics. | public int | read() Reads a single byte of decompressed data. | public int | read(byte[] buffer, int off, int nbytes) Reads up to nbytes of decompressed data and stores it in buf starting at
off. | public void | reset() Reset the position of the stream to the last mark position. | public long | skip(long nbytes) Skips up to nbytes of uncompressed data. |
BUF_SIZE | final static int BUF_SIZE(Code) | | |
InflaterInputStream | public InflaterInputStream(InputStream is)(Code) | | Constructs a new InflaterOutputStream on is
Parameters: is - The InputStream to read data from |
InflaterInputStream | public InflaterInputStream(InputStream is, Inflater inf)(Code) | | Constructs a new InflaterOutputStream on is, using the Inflater provided
in inf.
Parameters: is - The InputStream to read data from Parameters: inf - The Inflater to use for decompression |
InflaterInputStream | public InflaterInputStream(InputStream is, Inflater inf, int bsize)(Code) | | Constructs a new InflaterOutputStream on is, using the Inflater provided
in inf. The size of the inflation buffer is determined by bsize.
Parameters: is - The InputStream to read data from Parameters: inf - The Inflater to use for decompression Parameters: bsize - size of the inflation buffer |
available | public int available() throws IOException(Code) | | Returns 0 if this stream has been closed, 1 otherwise.
throws: IOException - If an error occurs |
mark | public void mark(int readlimit)(Code) | | Marks the current position in the stream.
This implementation overrides the supertype implementation to do nothing
at all.
Parameters: readlimit - of no use |
markSupported | public boolean markSupported()(Code) | | Answers whether the receiver implements mark semantics. This type does
not support mark, so always responds false .
false |
read | public int read() throws IOException(Code) | | Reads a single byte of decompressed data.
byte read throws: IOException - If an error occurs reading |
read | public int read(byte[] buffer, int off, int nbytes) throws IOException(Code) | | Reads up to nbytes of decompressed data and stores it in buf starting at
off.
Parameters: buffer - Buffer to store into Parameters: off - offset in buffer to store at Parameters: nbytes - number of bytes to store Number of uncompressed bytes read throws: IOException - If an error occurs reading |
reset | public void reset() throws IOException(Code) | | Reset the position of the stream to the last mark position.
This implementation overrides the supertype implementation and always
throws an
IOException IOException when called.
throws: IOException - if the method is called |
skip | public long skip(long nbytes) throws IOException(Code) | | Skips up to nbytes of uncompressed data.
Parameters: nbytes - Number of bytes to skip Number of uncompressed bytes skipped throws: IOException - If an error occurs skipping |
|
|