DeflaterOutputStream Members

DeflaterOutputStream Members

Class Overview | This Package | All Packages

Fields
Name Description
buf Output buffer for writing compressed data.
def Compressor for this stream.

Constructors
Name Description
DeflaterOutputStream(OutputStream) Creates a new output stream with a defaul compressor and buffer size.
DeflaterOutputStream(OutputStream, Deflater) Creates a new output stream with the specified compressor and a default buffer size.
DeflaterOutputStream(OutputStream, Deflater, int) Creates a new output stream with the specified compressor and buffer size.

Methods
Name Description
close() Writes remaining compressed data to the output stream and closes the underlying stream.
deflate() Writes next block of compressed data to the output stream.
finish() Finishes writing compressed data to the output stream without closing the underlying stream.
write(byte[], int, int) Writes an array of bytes to the compressed output stream.
write(int) Writes a byte to the compressed output stream.