com.esotericsoftware.kryo.compress
Class BlowfishCompressor
java.lang.Object
com.esotericsoftware.kryo.Serializer
com.esotericsoftware.kryo.Compressor
com.esotericsoftware.kryo.compress.BlowfishCompressor
public class BlowfishCompressor
- extends Compressor
Encrypts data using the blowfish cipher.
- Author:
- Nathan Sweet
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlowfishCompressor
public BlowfishCompressor(Serializer serializer,
byte[] key)
BlowfishCompressor
public BlowfishCompressor(Serializer serializer,
byte[] key,
int bufferSize)
compress
public void compress(java.nio.ByteBuffer inputBuffer,
java.lang.Object object,
java.nio.ByteBuffer outputBuffer)
- Description copied from class:
Compressor
- 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.
- Specified by:
compress in class Compressor
outputBuffer - A non-direct buffer.
decompress
public void decompress(java.nio.ByteBuffer inputBuffer,
java.lang.Class type,
java.nio.ByteBuffer outputBuffer)
- Description copied from class:
Compressor
- 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.
- Specified by:
decompress in class Compressor
outputBuffer - A non-direct buffer.
Copyright © 2011. All Rights Reserved.