Package org.xerial.snappy.pure
Class PureJavaSnappy
- java.lang.Object
-
- org.xerial.snappy.pure.PureJavaSnappy
-
-
Constructor Summary
Constructors Constructor Description PureJavaSnappy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidarrayCopy(java.lang.Object src, int offset, int byteLength, java.lang.Object dest, int dOffset)booleanisValidCompressedBuffer(long inputAddr, long offset, long len)booleanisValidCompressedBuffer(java.lang.Object input, int offset, int len)booleanisValidCompressedBuffer(java.nio.ByteBuffer compressed, int offset, int len)intmaxCompressedLength(int source_bytes)longrawCompress(long inputAddr, long inputSize, long destAddr)intrawCompress(java.lang.Object input, int inputOffset, int inputByteLength, java.lang.Object output, int outputOffset)intrawCompress(java.nio.ByteBuffer input, int inputOffset, int inputLength, java.nio.ByteBuffer compressed, int outputOffset)longrawUncompress(long inputAddr, long inputSize, long destAddr)intrawUncompress(java.lang.Object input, int inputOffset, int inputLength, java.lang.Object output, int outputOffset)intrawUncompress(java.nio.ByteBuffer compressed, int inputOffset, int inputLength, java.nio.ByteBuffer uncompressed, int outputOffset)longuncompressedLength(long inputAddr, long len)intuncompressedLength(java.lang.Object input, int offset, int len)intuncompressedLength(java.nio.ByteBuffer compressed, int offset, int len)
-
-
-
Method Detail
-
rawCompress
public long rawCompress(long inputAddr, long inputSize, long destAddr) throws java.io.IOException- Specified by:
rawCompressin interfaceSnappyApi- Throws:
java.io.IOException
-
rawUncompress
public long rawUncompress(long inputAddr, long inputSize, long destAddr) throws java.io.IOException- Specified by:
rawUncompressin interfaceSnappyApi- Throws:
java.io.IOException
-
rawCompress
public int rawCompress(java.nio.ByteBuffer input, int inputOffset, int inputLength, java.nio.ByteBuffer compressed, int outputOffset) throws java.io.IOException- Specified by:
rawCompressin interfaceSnappyApi- Throws:
java.io.IOException
-
rawCompress
public int rawCompress(java.lang.Object input, int inputOffset, int inputByteLength, java.lang.Object output, int outputOffset) throws java.io.IOException- Specified by:
rawCompressin interfaceSnappyApi- Throws:
java.io.IOException
-
rawUncompress
public int rawUncompress(java.nio.ByteBuffer compressed, int inputOffset, int inputLength, java.nio.ByteBuffer uncompressed, int outputOffset) throws java.io.IOException- Specified by:
rawUncompressin interfaceSnappyApi- Throws:
java.io.IOException
-
rawUncompress
public int rawUncompress(java.lang.Object input, int inputOffset, int inputLength, java.lang.Object output, int outputOffset) throws java.io.IOException- Specified by:
rawUncompressin interfaceSnappyApi- Throws:
java.io.IOException
-
maxCompressedLength
public int maxCompressedLength(int source_bytes)
- Specified by:
maxCompressedLengthin interfaceSnappyApi
-
uncompressedLength
public int uncompressedLength(java.nio.ByteBuffer compressed, int offset, int len) throws java.io.IOException- Specified by:
uncompressedLengthin interfaceSnappyApi- Throws:
java.io.IOException
-
uncompressedLength
public int uncompressedLength(java.lang.Object input, int offset, int len) throws java.io.IOException- Specified by:
uncompressedLengthin interfaceSnappyApi- Throws:
java.io.IOException
-
uncompressedLength
public long uncompressedLength(long inputAddr, long len) throws java.io.IOException- Specified by:
uncompressedLengthin interfaceSnappyApi- Throws:
java.io.IOException
-
isValidCompressedBuffer
public boolean isValidCompressedBuffer(java.nio.ByteBuffer compressed, int offset, int len) throws java.io.IOException- Specified by:
isValidCompressedBufferin interfaceSnappyApi- Throws:
java.io.IOException
-
isValidCompressedBuffer
public boolean isValidCompressedBuffer(java.lang.Object input, int offset, int len) throws java.io.IOException- Specified by:
isValidCompressedBufferin interfaceSnappyApi- Throws:
java.io.IOException
-
isValidCompressedBuffer
public boolean isValidCompressedBuffer(long inputAddr, long offset, long len) throws java.io.IOException- Specified by:
isValidCompressedBufferin interfaceSnappyApi- Throws:
java.io.IOException
-
-