com.esotericsoftware.kryo.compress
Class DeflateCompressor
java.lang.Object
com.esotericsoftware.kryo.Serializer
com.esotericsoftware.kryo.Compressor
com.esotericsoftware.kryo.compress.ByteArrayCompressor
com.esotericsoftware.kryo.compress.DeflateCompressor
public class DeflateCompressor
- extends ByteArrayCompressor
Compresses and decompresses using the "deflate" algorithm.
- Author:
- Nathan Sweet
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeflateCompressor
public DeflateCompressor(Serializer serializer)
DeflateCompressor
public DeflateCompressor(Serializer serializer,
int bufferSize)
compress
public void compress(byte[] inputBytes,
int inputLength,
java.nio.ByteBuffer outputBuffer)
- Description copied from class:
ByteArrayCompressor
- Implementations should read the specified number of input bytes and write compressed data to the output buffer.
- Specified by:
compress in class ByteArrayCompressor
outputBuffer - A non-direct buffer.
decompress
public void decompress(byte[] inputBytes,
int inputLength,
java.nio.ByteBuffer outputBuffer)
- Description copied from class:
ByteArrayCompressor
- Implementations should read the specified number of input bytes and write decompressed data to the output bytes.
- Specified by:
decompress in class ByteArrayCompressor
outputBuffer - A non-direct buffer.
Copyright © 2011. All Rights Reserved.