Package org.xerial.snappy
Interface SnappyApi
- All Known Implementing Classes:
SnappyNative
public interface SnappyApi
Snappy compressor/decompressor interface. The implementation can be JNI binding or pure-java Snappy implementation.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanisValidCompressedBuffer(long inputAddr, long offset, long len) booleanisValidCompressedBuffer(Object input, int offset, int len) booleanisValidCompressedBuffer(ByteBuffer compressed, int offset, int len) intmaxCompressedLength(int source_bytes) longrawCompress(long inputAddr, long inputSize, long destAddr) intrawCompress(Object input, int inputOffset, int inputByteLength, Object output, int outputOffset) intrawCompress(ByteBuffer input, int inputOffset, int inputLength, ByteBuffer compressed, int outputOffset) longrawUncompress(long inputAddr, long inputSize, long destAddr) intrawUncompress(Object input, int inputOffset, int inputLength, Object output, int outputOffset) intrawUncompress(ByteBuffer compressed, int inputOffset, int inputLength, ByteBuffer uncompressed, int outputOffset) longuncompressedLength(long inputAddr, long len) intuncompressedLength(Object input, int offset, int len) intuncompressedLength(ByteBuffer compressed, int offset, int len)
-
Method Details
-
rawCompress
- Throws:
IOException
-
rawUncompress
- Throws:
IOException
-
rawCompress
int rawCompress(ByteBuffer input, int inputOffset, int inputLength, ByteBuffer compressed, int outputOffset) throws IOException - Throws:
IOException
-
rawCompress
int rawCompress(Object input, int inputOffset, int inputByteLength, Object output, int outputOffset) throws IOException - Throws:
IOException
-
rawUncompress
int rawUncompress(ByteBuffer compressed, int inputOffset, int inputLength, ByteBuffer uncompressed, int outputOffset) throws IOException - Throws:
IOException
-
rawUncompress
int rawUncompress(Object input, int inputOffset, int inputLength, Object output, int outputOffset) throws IOException - Throws:
IOException
-
maxCompressedLength
int maxCompressedLength(int source_bytes) -
uncompressedLength
- Throws:
IOException
-
uncompressedLength
- Throws:
IOException
-
uncompressedLength
- Throws:
IOException
-
isValidCompressedBuffer
- Throws:
IOException
-
isValidCompressedBuffer
- Throws:
IOException
-
isValidCompressedBuffer
- Throws:
IOException
-
arrayCopy
- Throws:
IOException
-