public class DeflateCompressor extends java.lang.Object implements ICompressor
ICompressor.WrappedByteBuffer| Modifier and Type | Field and Description |
|---|---|
static DeflateCompressor |
instance |
| Modifier and Type | Method and Description |
|---|---|
int |
compress(java.nio.ByteBuffer src,
ICompressor.WrappedByteBuffer dest)
Compression for ByteBuffers
|
static DeflateCompressor |
create(java.util.Map<java.lang.String,java.lang.String> compressionOptions) |
int |
initialCompressedBufferLength(int chunkLength) |
java.util.Set<java.lang.String> |
supportedOptions() |
int |
uncompress(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset) |
int |
uncompress(java.nio.ByteBuffer input,
java.nio.ByteBuffer output)
Decompression for DirectByteBuffers
|
boolean |
useDirectOutputByteBuffers()
Notifies user if this compressor will wants/requires a direct byte buffers to
decompress direct byteBuffers
|
public static final DeflateCompressor instance
public static DeflateCompressor create(java.util.Map<java.lang.String,java.lang.String> compressionOptions)
public java.util.Set<java.lang.String> supportedOptions()
supportedOptions in interface ICompressorpublic int initialCompressedBufferLength(int chunkLength)
initialCompressedBufferLength in interface ICompressorpublic int compress(java.nio.ByteBuffer src,
ICompressor.WrappedByteBuffer dest)
ICompressorcompress in interface ICompressorpublic int uncompress(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset)
throws java.io.IOException
uncompress in interface ICompressorjava.io.IOExceptionpublic int uncompress(java.nio.ByteBuffer input,
java.nio.ByteBuffer output)
throws java.io.IOException
ICompressoruncompress in interface ICompressorjava.io.IOExceptionpublic boolean useDirectOutputByteBuffers()
ICompressoruseDirectOutputByteBuffers in interface ICompressorCopyright © 2015 The Apache Software Foundation