InflaterInputStream (Java SE 25 & JDK 25)
- All Implemented Interfaces:
Closeable, AutoCloseable
- Direct Known Subclasses:
GZIPInputStream, ZipInputStream
-
Field Summary
Fields
protected byte[]Input buffer for decompression.
Decompressor for this stream.
protected intThe total number of bytes read into the input buffer.
-
Constructor Summary
Constructors
Creates a new input stream and decompressor with a default buffer size.
Creates a new input stream with the specified decompressor and a default buffer size.
Creates a new input stream with the specified decompressor and buffer size.
-
Method Summary
intReturns 0 after EOF has been reached, otherwise always return 1.
voidclose()Closes this input stream and releases any system resources associated with the stream.
protected voidfill()Fills input buffer with more data to decompress.
voidmark(int readlimit) Marks the current position in this input stream.
booleanTests if this input stream supports the
markandresetmethods.intread()Reads a byte of uncompressed data.
intread(byte[] b, int off, int len) Reads uncompressed data into an array of bytes, returning the number of inflated bytes.
voidreset()Repositions this stream to the position at the time the
markmethod was last called on this input stream.longskip(long n) Skips specified number of bytes of uncompressed data.
-
Field Details
-
inf
-
buf
-
len
-
-
Constructor Details
-
InflaterInputStream
-
InflaterInputStream
-
InflaterInputStream
-
-
Method Details
-
read
-
read
-
available
-
skip
-
close
-
fill
-
markSupported
-
mark
-
reset
-