Decompressor, DirectDecompressorpublic static class ZlibDecompressor.ZlibDirectDecompressor extends ZlibDecompressor implements DirectDecompressor
ZlibDecompressor.CompressionHeader, ZlibDecompressor.ZlibDirectDecompressor| Constructor | Description |
|---|---|
ZlibDirectDecompressor() |
|
ZlibDirectDecompressor(ZlibDecompressor.CompressionHeader header,
int directBufferSize) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
decompress(byte[] b,
int off,
int len) |
Fills specified buffer with uncompressed data.
|
void |
decompress(java.nio.ByteBuffer src,
java.nio.ByteBuffer dst) |
|
boolean |
finished() |
Returns
true if the end of the decompressed
data output stream has been reached. |
void |
reset() |
Resets everything including the input buffers (user and direct).
|
void |
setDictionary(byte[] b,
int off,
int len) |
Sets preset dictionary for compression.
|
end, finalize, getBytesRead, getBytesWritten, getRemaining, needsDictionary, needsInput, setInputpublic ZlibDirectDecompressor()
public ZlibDirectDecompressor(ZlibDecompressor.CompressionHeader header, int directBufferSize)
public boolean finished()
Decompressortrue if the end of the decompressed
data output stream has been reached. Indicates a concatenated data stream
when finished() returns true and Decompressor.getRemaining()
returns a positive value. finished() will be reset with the
Decompressor.reset() method.finished in interface Decompressorfinished in class ZlibDecompressortrue if the end of the decompressed
data output stream has been reached.public void reset()
ZlibDecompressorreset in interface Decompressorreset in class ZlibDecompressorpublic void decompress(java.nio.ByteBuffer src,
java.nio.ByteBuffer dst)
throws java.io.IOException
decompress in interface DirectDecompressorjava.io.IOExceptionpublic void setDictionary(byte[] b,
int off,
int len)
DecompressorsetDictionary in interface DecompressorsetDictionary in class ZlibDecompressorb - Dictionary data bytesoff - Start offsetlen - Lengthpublic int decompress(byte[] b,
int off,
int len)
DecompressorDecompressor.needsInput() should be called in order to determine if more
input data is required.decompress in interface Decompressordecompress in class ZlibDecompressorb - Buffer for the uncompressed dataoff - Start offset of the datalen - Size of the bufferCopyright © 2008–2025 Apache Software Foundation. All rights reserved.