API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.zip. DeflaterInputStream View Source
Author(s)
David R Tribble (david@tribble.com)
Since
1.6
Version
1.1
Serial
Hierarchy
 Object
      InputStream
          FilterInputStream
              DeflaterInputStream
Implements
Subclasses
Description
public class DeflaterInputStream
  Implements an input stream filter for compressing data in the "deflate" compression format.
Constructors
public DeflaterInputStream (InputStream in)
  Creates a new input stream with a default compressor and buffer size.
public DeflaterInputStream (InputStream in, Deflater defl)
  Creates a new input stream with the specified compressor and a default buffer size.
public DeflaterInputStream (InputStream in, Deflater defl, int bufLen)
  Creates a new input stream with the specified compressor and buffer size.
Methods
Hide/Show inherited methods
public int available () throws IOException [Overrides FilterInputStream]
  Returns 0 after EOF has been reached, otherwise always return 1.
public void close () throws IOException [Overrides FilterInputStream]
  Closes this input stream and its underlying input stream, discarding any pending uncompressed data.
public void mark (int limit) [Overrides FilterInputStream]
  This operation is not supported.
public boolean markSupported () [Overrides FilterInputStream]
  Always returns false because this input stream does not support the mark() and reset() methods.
public int read () throws IOException [Overrides FilterInputStream] [Specified in InputStream]
  Reads a single byte of compressed data from the input stream.
public int read (byte[] b) throws IOException [Inherited From FilterInputStream]
  Reads up to byte.length bytes of data from this input stream into an array of bytes.
public int read (byte[] b, int off, int len) throws IOException [Overrides FilterInputStream]
  Reads compressed data into a byte array.
public void reset () throws IOException [Overrides FilterInputStream]
  This operation is not supported.
public long skip (long n) throws IOException [Overrides FilterInputStream]
  Skips over and discards data from the input stream.
Fields
Hide/Show inherited fields
protectedfinal byte buf
Input buffer for reading compressed data.
protectedfinal Deflater def
Compressor for this stream.
protectedvolatile InputStream in [Inherited From FilterInputStream]
The input stream to be filtered.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar