public class NoopCompressor extends java.lang.Object implements ICompressor
ICompressor.Uses| Constructor and Description |
|---|
NoopCompressor() |
| Modifier and Type | Method and Description |
|---|---|
void |
compress(java.nio.ByteBuffer input,
java.nio.ByteBuffer output)
Compression for ByteBuffers.
|
static NoopCompressor |
create(java.util.Map<java.lang.String,java.lang.String> ignored) |
int |
initialCompressedBufferLength(int chunkLength) |
BufferType |
preferredBufferType()
Returns the preferred (most efficient) buffer type for this compressor.
|
java.util.Set<java.lang.String> |
supportedOptions() |
boolean |
supports(BufferType bufferType)
Checks if the given buffer would be supported by the compressor.
|
int |
uncompress(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset) |
void |
uncompress(java.nio.ByteBuffer input,
java.nio.ByteBuffer output)
Decompression for DirectByteBuffers.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrecommendedUsespublic static NoopCompressor create(java.util.Map<java.lang.String,java.lang.String> ignored)
public int initialCompressedBufferLength(int chunkLength)
initialCompressedBufferLength 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 void compress(java.nio.ByteBuffer input,
java.nio.ByteBuffer output)
throws java.io.IOException
ICompressorcompress in interface ICompressorjava.io.IOExceptionpublic void uncompress(java.nio.ByteBuffer input,
java.nio.ByteBuffer output)
throws java.io.IOException
ICompressoruncompress in interface ICompressorjava.io.IOExceptionpublic BufferType preferredBufferType()
ICompressorpreferredBufferType in interface ICompressorpublic boolean supports(BufferType bufferType)
ICompressorsupports in interface ICompressorpublic java.util.Set<java.lang.String> supportedOptions()
supportedOptions in interface ICompressorCopyright © 2009-2022 The Apache Software Foundation