public class DeflateCompressor extends ByteArrayCompressor
Constructor and Description |
---|
DeflateCompressor(Serializer serializer) |
DeflateCompressor(Serializer serializer,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
compress(byte[] inputBytes,
int inputLength,
java.nio.ByteBuffer outputBuffer)
Implementations should read the specified number of input bytes and write compressed data to the output buffer.
|
void |
decompress(byte[] inputBytes,
int inputLength,
java.nio.ByteBuffer outputBuffer)
Implementations should read the specified number of input bytes and write decompressed data to the output bytes.
|
compress, decompress
readObjectData, setCompress, setDecompress, writeObjectData
isFinal, newInstance, readObject, setCanBeNull, writeObject
public DeflateCompressor(Serializer serializer)
public DeflateCompressor(Serializer serializer, int bufferSize)
public void compress(byte[] inputBytes, int inputLength, java.nio.ByteBuffer outputBuffer)
ByteArrayCompressor
compress
in class ByteArrayCompressor
outputBuffer
- A non-direct buffer.public void decompress(byte[] inputBytes, int inputLength, java.nio.ByteBuffer outputBuffer)
ByteArrayCompressor
decompress
in class ByteArrayCompressor
outputBuffer
- A non-direct buffer.