All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
GZIPInputStream, ZipInputStream

  • Field Summary

    Fields

    protected byte[]

    Input buffer for decompression.

    Decompressor for this stream.

    protected int

    The 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

    int

    available()

    Returns 0 after EOF has been reached, otherwise always return 1.

    void

    close()

    Closes this input stream and releases any system resources associated with the stream.

    protected void

    fill()

    Fills input buffer with more data to decompress.

    void

    mark(int readlimit)

    Marks the current position in this input stream.

    boolean

    Tests if this input stream supports the mark and reset methods.

    int

    read()

    Reads a byte of uncompressed data.

    int

    read(byte[] b, int off, int len)

    Reads uncompressed data into an array of bytes, returning the number of inflated bytes.

    void

    reset()

    Repositions this stream to the position at the time the mark method was last called on this input stream.

    long

    skip(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