Decompressor, DirectDecompressorpublic static class SnappyDecompressor.SnappyDirectDecompressor extends SnappyDecompressor implements DirectDecompressor
SnappyDecompressor.SnappyDirectDecompressor| Constructor | Description |
|---|---|
SnappyDirectDecompressor() |
| 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 decompressor and input and output buffers so that a new set of
input data can be processed.
|
void |
setDictionary(byte[] b,
int off,
int len) |
Does nothing.
|
end, getRemaining, needsDictionary, needsInput, setInputpublic boolean finished()
SnappyDecompressorfinished in interface Decompressorfinished in class SnappyDecompressortrue if the end of the decompressed
data output stream has been reached.public void reset()
DecompressorDecompressor.finished()} returns
true and Decompressor.getRemaining() returns a positive value,
reset() is called before processing of the next data stream in the
concatenated data stream. Decompressor.finished() will be reset and will
return false when reset() is called.reset in interface Decompressorreset in class SnappyDecompressorpublic 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)
SnappyDecompressorsetDictionary in interface DecompressorsetDictionary in class SnappyDecompressorb - Dictionary data bytesoff - Start offsetlen - Lengthpublic int decompress(byte[] b,
int off,
int len)
SnappyDecompressorSnappyDecompressor.needsInput() should be called in order to determine if more
input data is required.decompress in interface Decompressordecompress in class SnappyDecompressorb - Buffer for the uncompressed dataoff - Start offset of the datalen - Size of the bufferCopyright © 2008–2025 Apache Software Foundation. All rights reserved.