Package io.airlift.compress.snappy
Class SnappyDecompressor
- java.lang.Object
-
- io.airlift.compress.snappy.SnappyDecompressor
-
- All Implemented Interfaces:
Decompressor
public class SnappyDecompressor extends Object implements Decompressor
-
-
Constructor Summary
Constructors Constructor Description SnappyDecompressor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intdecompress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength)voiddecompress(ByteBuffer inputBuffer, ByteBuffer outputBuffer)static intgetUncompressedLength(byte[] compressed, int compressedOffset)
-
-
-
Method Detail
-
getUncompressedLength
public static int getUncompressedLength(byte[] compressed, int compressedOffset)
-
decompress
public int decompress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset, int maxOutputLength) throws MalformedInputException- Specified by:
decompressin interfaceDecompressor- Returns:
- number of bytes written to the output
- Throws:
MalformedInputException
-
decompress
public void decompress(ByteBuffer inputBuffer, ByteBuffer outputBuffer) throws MalformedInputException
- Specified by:
decompressin interfaceDecompressor- Throws:
MalformedInputException
-
-