All Implemented Interfaces:
AutoCloseable

  • Constructor Summary

    Constructors

    Inflater()

    Creates a new decompressor.

    Inflater(boolean nowrap)

    Creates a new decompressor.

  • Method Summary

    void

    close()

    Closes and releases the resources held by this Inflater and discards any unprocessed input.

    void

    end()

    Closes and releases the resources held by this Inflater and discards any unprocessed input.

    boolean

    finished()

    Returns true if the end of the compressed data stream has been reached.

    int

    getAdler()

    Returns the ADLER-32 value of the uncompressed data.

    long

    Returns the total number of compressed bytes input so far.

    long

    Returns the total number of uncompressed bytes output so far.

    int

    Returns the total number of bytes remaining in the input buffer.

    int

    int

    int

    inflate(byte[] output)

    Uncompresses bytes into specified buffer.

    int

    inflate(byte[] output, int off, int len)

    Uncompresses bytes into specified buffer.

    int

    Uncompresses bytes into specified buffer.

    boolean

    Returns true if a preset dictionary is needed for decompression.

    boolean

    Returns true if no data remains in the input buffer.

    void

    reset()

    Resets inflater so that a new set of input data can be processed.

    void

    setDictionary(byte[] dictionary)

    Sets the preset dictionary to the given array of bytes.

    void

    setDictionary(byte[] dictionary, int off, int len)

    Sets the preset dictionary to the given array of bytes.

    void

    Sets the preset dictionary to the bytes in the given buffer.

    void

    setInput(byte[] input)

    Sets input data for decompression.

    void

    setInput(byte[] input, int off, int len)

    Sets input data for decompression.

    void

    Sets input data for decompression.

  • Constructor Details

    • Inflater

    • Inflater

  • Method Details

    • setInput

    • setInput

    • setInput

    • setDictionary

    • setDictionary

    • setDictionary

    • getRemaining

    • needsInput

    • needsDictionary

    • finished

    • inflate

    • inflate

    • inflate

    • getAdler

    • getTotalIn

    • getBytesRead

    • getTotalOut

    • getBytesWritten

    • reset

    • end

    • close