API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util.zip. GZIPOutputStream View Source
Author(s)
David Connelly
Since
Version
1.23, 11/17/05
Serial
Hierarchy
 Object
      OutputStream
          FilterOutputStream
              DeflaterOutputStream
                  GZIPOutputStream
Implements
Subclasses
Description
public class GZIPOutputStream
This class implements a stream filter for writing compressed data in the GZIP file format.
See also:   
Constructors
public GZIPOutputStream (OutputStream out) throws IOException
  Creates a new output stream with a default buffer size.
public GZIPOutputStream (OutputStream out, int size) throws IOException
  Creates a new output stream with the specified buffer size.
Methods
Hide/Show inherited methods
public void close () throws IOException [Inherited From DeflaterOutputStream]
  Writes remaining compressed data to the output stream and closes the underlying stream.
protected void deflate () throws IOException [Inherited From DeflaterOutputStream]
  Writes next block of compressed data to the output stream.
public void finish () throws IOException [Overrides DeflaterOutputStream]
  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.
publicsynchronized void write (byte[] buf, int off, int len) throws IOException [Overrides DeflaterOutputStream]
  Writes array of bytes to the compressed output stream.
public void write (int b) throws IOException [Inherited From DeflaterOutputStream] [Specified in OutputStream]
  Writes a byte to the compressed output stream.
Fields
Hide/Show inherited fields
protected byte buf [Inherited From DeflaterOutputStream]
Output buffer for writing compressed data.
protected CRC32 crc
CRC-32 of uncompressed data.
protected Deflater def [Inherited From DeflaterOutputStream]
Compressor for this stream.
protected OutputStream out [Inherited From FilterOutputStream]
The underlying output stream to be filtered.
pack-private boolean usesDefaultDeflater [Inherited From DeflaterOutputStream]
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar