public interface ICompressor
Modifier and Type | Interface and Description |
---|---|
static class |
ICompressor.WrappedByteBuffer
A simple wrapped Bytebuffer.
|
Modifier and Type | Method and Description |
---|---|
int |
compress(java.nio.ByteBuffer input,
ICompressor.WrappedByteBuffer output)
Compression for ByteBuffers
|
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
|
int initialCompressedBufferLength(int chunkLength)
int uncompress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) throws java.io.IOException
java.io.IOException
int compress(java.nio.ByteBuffer input, ICompressor.WrappedByteBuffer output) throws java.io.IOException
java.io.IOException
int uncompress(java.nio.ByteBuffer input, java.nio.ByteBuffer output) throws java.io.IOException
java.io.IOException
boolean useDirectOutputByteBuffers()
java.util.Set<java.lang.String> supportedOptions()
Copyright © 2015 The Apache Software Foundation