API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.zip. DeflaterOutputStream View Source
Author(s)
David Connelly
Since
Version
1.36, 03/13/06
Serial
Hierarchy
 Object
      OutputStream
          FilterOutputStream
              DeflaterOutputStream
Implements
Subclasses
Description
public class DeflaterOutputStream
  This class implements an output stream filter for compressing data in the "deflate" compression format.
See also:    Deflater
Constructors
public DeflaterOutputStream (OutputStream out)
  Creates a new output stream with a default compressor and buffer size.
public DeflaterOutputStream (OutputStream out, Deflater def)
  Creates a new output stream with the specified compressor and a default buffer size.
public DeflaterOutputStream (OutputStream out, Deflater def, int size)
  Creates a new output stream with the specified compressor and buffer size.
Methods
Hide/Show inherited methods
public void close () throws IOException [Overrides FilterOutputStream]
  Writes remaining compressed data to the output stream and closes the underlying stream.
protected void deflate () throws IOException
  Writes next block of compressed data to the output stream.
public void finish () throws IOException
  Finishes writing compressed data to the output stream without closing the underlying stream.
public void flush () throws IOException [Inherited From FilterOutputStream]
  Flushes this output stream and forces any buffered output bytes to be written out to the stream.
public void write (byte[] b) throws IOException [Inherited From FilterOutputStream]
  Writes b.length bytes to this output stream.
public void write (byte[] b, int off, int len) throws IOException [Overrides FilterOutputStream]
  Writes an array of bytes to the compressed output stream.
public void write (int b) throws IOException [Overrides FilterOutputStream] [Specified in OutputStream]
  Writes a byte to the compressed output stream.
Fields
Hide/Show inherited fields
protected byte buf
Output buffer for writing compressed data.
protected Deflater def
Compressor for this stream.
protected OutputStream out [Inherited From FilterOutputStream]
The underlying output stream to be filtered.
pack-private boolean usesDefaultDeflater
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar