public static class IUnCompressor.NoUnCompressor extends Object implements IUnCompressor
IUnCompressor.GZIPUnCompressor, IUnCompressor.LZ4UnCompressor, IUnCompressor.NoUnCompressor, IUnCompressor.SnappyUnCompressor| Constructor and Description |
|---|
NoUnCompressor() |
| Modifier and Type | Method and Description |
|---|---|
CompressionType |
getCodecName() |
int |
getUncompressedLength(byte[] array,
int offset,
int length) |
int |
getUncompressedLength(ByteBuffer buffer)
get the uncompressed length.
|
byte[] |
uncompress(byte[] byteArray)
uncompress the byte array.
|
int |
uncompress(byte[] byteArray,
int offset,
int length,
byte[] output,
int outOffset)
uncompress the byte array.
|
int |
uncompress(ByteBuffer compressed,
ByteBuffer uncompressed)
if the data is large, using this function is better.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUnCompressorpublic int getUncompressedLength(byte[] array,
int offset,
int length)
getUncompressedLength in interface IUnCompressorpublic int getUncompressedLength(ByteBuffer buffer)
IUnCompressorgetUncompressedLength in interface IUnCompressorbuffer - MUST be DirectByteBufferpublic byte[] uncompress(byte[] byteArray)
IUnCompressoruncompress in interface IUnCompressorbyteArray - to be uncompressed bytespublic int uncompress(byte[] byteArray,
int offset,
int length,
byte[] output,
int outOffset)
IUnCompressoruncompress in interface IUnCompressorbyteArray - -to be uncompressed bytesoffset - -offsetlength - -lengthoutput - -output byteoutOffset - -public int uncompress(ByteBuffer compressed, ByteBuffer uncompressed) throws IOException
IUnCompressoruncompress in interface IUnCompressorcompressed - MUST be DirectByteBufferuncompressed - MUST be DirectByteBufferIOExceptionpublic CompressionType getCodecName()
getCodecName in interface IUnCompressorCopyright © 2022 The Apache Software Foundation. All rights reserved.