public interface ICompressor<T extends java.nio.Buffer>
| Modifier and Type | Method and Description |
|---|---|
boolean |
compress(T buffer,
java.nio.ByteBuffer compressed)
compress the buffer into the byte buffer.
|
void |
decompress(java.nio.ByteBuffer compressed,
T buffer)
Decompress the byte buffer and restore the buffer from it, again enough
space must already be allocated.
|
boolean compress(T buffer, java.nio.ByteBuffer compressed)
buffer - the buffer to compress.compressed - the compressed datavoid decompress(java.nio.ByteBuffer compressed,
T buffer)
compressed - the compressed databuffer - the buffer to fill with the uncompressed data.