| java.util.zip.DeflaterOutputStream java.util.zip.GZIPOutputStream
GZIPOutputStream | public class GZIPOutputStream extends DeflaterOutputStream (Code) | | The GZIPOutputStream class is used to write data to a stream in the GZIP
storage format.
|
Constructor Summary | |
public | GZIPOutputStream(OutputStream os) Construct a new GZIPOutputStream to write data in GZIP format to the
underlying stream. | public | GZIPOutputStream(OutputStream os, int size) Construct a new GZIPOutputStream to write data in GZIP format to the
underlying stream. |
Method Summary | |
public void | finish() Indicates to the stream that all data has been written out, and any GZIP
terminal data can now be output. | public void | write(byte[] buffer, int off, int nbytes) Write up to nbytes of data from the given buffer, starting at offset off,
to the underlying stream in GZIP format. |
GZIPOutputStream | public GZIPOutputStream(OutputStream os) throws IOException(Code) | | Construct a new GZIPOutputStream to write data in GZIP format to the
underlying stream.
Parameters: os - OutputStream to write to throws: IOException - if an IO error occurs writing to the output stream |
GZIPOutputStream | public GZIPOutputStream(OutputStream os, int size) throws IOException(Code) | | Construct a new GZIPOutputStream to write data in GZIP format to the
underlying stream. Set the internal compression buffer to sise size.
Parameters: os - OutputStream to write to Parameters: size - Internal buffer size throws: IOException - if an IO error occurs writing to the output stream |
finish | public void finish() throws IOException(Code) | | Indicates to the stream that all data has been written out, and any GZIP
terminal data can now be output.
|
write | public void write(byte[] buffer, int off, int nbytes) throws IOException(Code) | | Write up to nbytes of data from the given buffer, starting at offset off,
to the underlying stream in GZIP format.
|
|
|