API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.zip. Inflater View Source
Author(s)
David Connelly
Since
Version
1.47, 04/07/06
Serial
Hierarchy
 Object
      Inflater
Implements
Subclasses
Description
public class Inflater
  This class provides support for general purpose decompression using the popular ZLIB compression library.
See also:    Deflater
Constructors
public Inflater ()
Creates a new decompressor.
public Inflater (boolean nowrap)
  Creates a new decompressor.
Methods
Hide/Show inherited methods
publicsynchronized void end ()
  Closes the decompressor and discards any unprocessed input.
protected void finalize ()
Closes the decompressor when garbage is collected.
publicsynchronized boolean finished ()
  Returns true if the end of the compressed data stream has been reached.
publicsynchronized int getAdler ()
  Returns the ADLER-32 value of the uncompressed data.
publicsynchronized long getBytesRead ()
  Returns the total number of compressed bytes input so far.
publicsynchronized long getBytesWritten ()
  Returns the total number of uncompressed bytes output so far.
publicsynchronized int getRemaining ()
  Returns the total number of bytes remaining in the input buffer.
public int getTotalIn ()
  Returns the total number of compressed bytes input so far.
public int getTotalOut ()
  Returns the total number of uncompressed bytes output so far.
public int inflate (byte[] b) throws DataFormatException
  Uncompresses bytes into specified buffer.
publicsynchronized int inflate (byte[] b, int off, int len) throws DataFormatException
  Uncompresses bytes into specified buffer.
publicsynchronized boolean needsDictionary ()
  Returns true if a preset dictionary is needed for decompression.
publicsynchronized boolean needsInput ()
  Returns true if no data remains in the input buffer.
publicsynchronized void reset ()
Resets inflater so that a new set of input data can be processed.
public void setDictionary (byte[] b)
  Sets the preset dictionary to the given array of bytes.
publicsynchronized void setDictionary (byte[] b, int off, int len)
  Sets the preset dictionary to the given array of bytes.
public void setInput (byte[] b)
  Sets input data for decompression.
publicsynchronized void setInput (byte[] b, int off, int len)
  Sets input data for decompression.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar