| java.lang.Object | |||
| ↳ | java.io.OutputStream | ||
| ↳ | java.io.FilterOutputStream | ||
| ↳ | java.util.zip.DeflaterOutputStream | ||
Known Direct Subclasses
|
Known Indirect Subclasses
|
The DeflaterOutputStream class implements a stream filter for the writing of compressed data to a stream. Compression is performed by an instance of Deflater.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| buf | |||||||||||
| def | |||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.io.FilterOutputStream
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new DeflaterOutputStream instance using os as the underlying
stream.
| |||||||||||
Constructs a new DeflaterOutputStream instance using os as the underlying
stream.
| |||||||||||
Constructs a new DeflaterOutputStream instance using os as the underlying
stream.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Writes any unwritten compressed data to the underlying stream, the closes
all underlying streams.
| |||||||||||
Write any unwritten data to the underlying stream.
| |||||||||||
Writes the specified byte
oneByte to this
FilterOutputStream. | |||||||||||
Compress nbytes of data from buf starting at off and write it to the
underlying stream.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Compress the data in the input buffer and write it to the underlying
stream.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class java.io.FilterOutputStream
| |||||||||||
From class java.io.OutputStream
| |||||||||||
From class java.lang.Object
| |||||||||||
From interface java.io.Closeable
| |||||||||||
From interface java.io.Flushable
| |||||||||||
Constructs a new DeflaterOutputStream instance using os as the underlying stream. The provided Deflater instance will be used to compress data.
| os | OutputStream to receive compressed data |
|---|---|
| def | Deflater to perform compression |
Constructs a new DeflaterOutputStream instance using os as the underlying stream.
| os | OutputStream to receive compressed data |
|---|
Constructs a new DeflaterOutputStream instance using os as the underlying stream. The provided Deflater instance will be used to compress data. The internal buffer for storing compressed data will be of size bsize.
| os | OutputStream to receive compressed data |
|---|---|
| def | Deflater to perform compression |
| bsize | size of internal compression buffer |
Writes any unwritten compressed data to the underlying stream, the closes all underlying streams. This stream can no longer be used after close() has been called.
| IOException | If an error occurs during close. |
|---|
Write any unwritten data to the underlying stream. Do not close the stream. This allows subsequent Deflater's to write to the same stream. This Deflater cannot be used again.
| IOException | If an error occurs. |
|---|
Writes the specified byte oneByte to this
FilterOutputStream. Only the low order byte of oneByte is
written. This implementation writes the byte to the target OutputStream.
| i | the byte to be written |
|---|
| IOException |
|---|
Compress nbytes of data from buf starting at off and write it to the underlying stream.
| buffer | Buffer of data to compress |
|---|---|
| off | offset in buffer to extract data from |
| nbytes | Number of bytes of data to compress and write |
| IOException | If an error occurs during writing. |
|---|
Compress the data in the input buffer and write it to the underlying stream.
| IOException | If an error occurs during deflation. |
|---|