public class BlowfishCompressor extends Compressor
Constructor and Description |
---|
BlowfishCompressor(Serializer serializer,
byte[] key) |
BlowfishCompressor(Serializer serializer,
byte[] key,
int bufferSize) |
Modifier and Type | Method and Description |
---|---|
void |
compress(java.nio.ByteBuffer inputBuffer,
java.lang.Object object,
java.nio.ByteBuffer outputBuffer)
The compressor should read the input buffer from the current position to the limit, compress the data, and put the result in
the output buffer.
|
void |
decompress(java.nio.ByteBuffer inputBuffer,
java.lang.Class type,
java.nio.ByteBuffer outputBuffer)
The compressor should read the input buffer from the current position to the limit, decompress the data, and put the result
in the output buffer.
|
readObjectData, setCompress, setDecompress, writeObjectData
isFinal, newInstance, readObject, setCanBeNull, writeObject
public BlowfishCompressor(Serializer serializer, byte[] key)
public BlowfishCompressor(Serializer serializer, byte[] key, int bufferSize)
public void compress(java.nio.ByteBuffer inputBuffer, java.lang.Object object, java.nio.ByteBuffer outputBuffer)
Compressor
compress
in class Compressor
outputBuffer
- A non-direct buffer.public void decompress(java.nio.ByteBuffer inputBuffer, java.lang.Class type, java.nio.ByteBuffer outputBuffer)
Compressor
decompress
in class Compressor
outputBuffer
- A non-direct buffer.