public interface ICompressorControl
Modifier and Type | Method and Description |
---|---|
boolean |
compress(java.nio.Buffer in,
java.nio.ByteBuffer out,
ICompressOption option)
Compress the buffer into the byte buffer using the specified options.
|
void |
decompress(java.nio.ByteBuffer in,
java.nio.Buffer out,
ICompressOption option)
decompress the byte buffer back into the buffer using the specified
options.
|
ICompressOption |
option() |
boolean compress(java.nio.Buffer in, java.nio.ByteBuffer out, ICompressOption option)
in
- the buffer to compress.out
- the compressed data to fill (must already be allocated with
enough space)option
- the options to use for the compressionvoid decompress(java.nio.ByteBuffer in, java.nio.Buffer out, ICompressOption option)
in
- the bytes to decompress.out
- the buffer to fill with the decompressed data (must already be
allocated with enough space)option
- the options to use for decompressing.ICompressOption option()