java.util.zip
public class GZIPOutputStream extends DeflaterOutputStream
Since: JDK 1.1
Field Summary | |
---|---|
protected CRC32 | crc
CRC-32 value for uncompressed data |
Constructor Summary | |
---|---|
GZIPOutputStream(OutputStream out)
Creates a GZIPOutputStream with the default buffer size
| |
GZIPOutputStream(OutputStream out, int size)
Creates a GZIPOutputStream with the specified buffer size
|
Method Summary | |
---|---|
void | close()
Writes remaining compressed output data to the output stream
and closes it. |
void | finish() |
void | write(byte[] buf, int off, int len) |
Parameters: out The stream to read data (to be compressed) from
Parameters: out The stream to read compressed data from size Size of the buffer to use