GZIPOutputStream

public class GZIPOutputStream extends DeflaterOutputStream

This class implements a stream filter for writing compressed data in the GZIP file format.

Field Summary

protected CRC32 crc CRC-32 of uncompressed data.

Inherited Field Summary

Public Constructor Summary

GZIPOutputStream(OutputStream out, int size)
Creates a new output stream with the specified buffer size.
GZIPOutputStream(OutputStream out, int size, boolean syncFlush)
Creates a new output stream with the specified buffer size and flush mode.
GZIPOutputStream(OutputStream out)
Creates a new output stream with a default buffer size.
GZIPOutputStream(OutputStream out, boolean syncFlush)
Creates a new output stream with a default buffer size and the specified flush mode.

Public Method Summary

void
finish()
Finishes writing compressed data to the output stream without closing the underlying stream.
synchronized void
write(byte[] buf, int off, int len)
Writes array of bytes to the compressed output stream.

Inherited Method Summary