Decompressor, DirectDecompressorpublic static class ZStandardDecompressor.ZStandardDirectDecompressor extends ZStandardDecompressor implements DirectDecompressor
DirectDecompressor for ZStandard
https://github.com/facebook/zstd.ZStandardDecompressor.ZStandardDirectDecompressor| Constructor | Description |
|---|---|
ZStandardDirectDecompressor(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, getRecommendedBufferSize, getRemaining, isNativeCodeLoaded, needsDictionary, needsInput, setInputpublic ZStandardDirectDecompressor(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 ZStandardDecompressortrue if the end of the decompressed
data output stream has been reached.public void reset()
ZStandardDecompressorreset in interface Decompressorreset in class ZStandardDecompressorpublic 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 ZStandardDecompressorb - 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 ZStandardDecompressorb - Buffer for the uncompressed dataoff - Start offset of the datalen - Size of the bufferCopyright © 2008–2025 Apache Software Foundation. All rights reserved.