| java.lang.Object | |||
| ↳ | java.io.OutputStream | ||
| ↳ | java.io.FilterOutputStream | ||
| ↳ | java.util.zip.InflaterOutputStream | ||
An OutputStream filter to decompress data. Callers write compressed data in the "deflate" format, and uncompressed data is written to the underlying stream.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | buf | ||||||||||
|  | inf | ||||||||||
| [Expand] 
           Inherited Fields
           | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class java.io.FilterOutputStream | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | 
           Constructs an 
            InflaterOutputStreamwith a newInflaterand an implementation-defined default internal buffer size. | ||||||||||
|  | 
           Constructs an 
            InflaterOutputStreamwith the givenInflaterand an implementation-defined default internal buffer size. | ||||||||||
|  | 
           Constructs an 
            InflaterOutputStreamwith the givenInflaterand given internal buffer size. | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | 
           Writes remaining data into the output stream and closes the underlying output stream.
           | ||||||||||
|  | 
           Finishes writing current uncompressed data into the InflaterOutputStream without closing it.
           | ||||||||||
|  | 
           Ensures that all pending data is sent out to the target stream.
           | ||||||||||
|  | 
           Writes to the decompressing output stream.
           | ||||||||||
|  | 
           Writes a byte to the decompressing output 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 an InflaterOutputStream with a new Inflater and an implementation-defined default internal buffer size. out is a destination for uncompressed data, and compressed data will be written to this stream.
| out | the destination OutputStream | 
|---|
Constructs an InflaterOutputStream with the given Inflater and an implementation-defined default internal buffer size. out is a destination for uncompressed data, and compressed data will be written to this stream.
| out | the destination OutputStream | 
|---|---|
| inf | the Inflaterto be used for decompression | 
Constructs an InflaterOutputStream with the given Inflater and given internal buffer size. out is a destination for uncompressed data, and compressed data will be written to this stream.
| out | the destination OutputStream | 
|---|---|
| inf | the Inflaterto be used for decompression | 
| bufferSize | the length in bytes of the internal buffer | 
Writes remaining data into the output stream and closes the underlying output stream.
| IOException | 
|---|
Finishes writing current uncompressed data into the InflaterOutputStream without closing it.
| IOException | if an I/O error occurs, or the stream has been closed | 
|---|
Ensures that all pending data is sent out to the target stream. This implementation flushes the target stream.
| IOException | 
|---|
Writes to the decompressing output stream. The bytes array should contain compressed input. The corresponding uncompressed data will be written to the underlying stream.
| bytes | the buffer to write. | 
|---|---|
| offset | the index of the first byte in bufferto write. | 
| byteCount | the number of bytes in bufferto write. | 
| IOException | if an I/O error occurs, or the stream has been closed | 
|---|---|
| ZipException | if a zip exception occurs. | 
| NullPointerException | if b == null. | 
| IndexOutOfBoundsException | if off < 0 || len < 0 || off + len > b.length | 
Writes a byte to the decompressing output stream. b should be a byte of compressed input. The corresponding uncompressed data will be written to the underlying stream.
| b | the byte | 
|---|
| IOException | if an I/O error occurs, or the stream has been closed | 
|---|---|
| ZipException | if a zip exception occurs. |