Top Description Constructors Methods
org.xerial.snappy

public Class SnappyNative

extends Object
implements SnappyApi
Class Inheritance
All Implemented Interfaces
org.xerial.snappy.SnappyApi
Imports
java.io.IOException, java.nio.ByteBuffer

JNI interface of the Snappy implementation. The native method in this class is defined in SnappyNative.h (genereted by javah) and SnappyNative.cpp

DO NOT USE THIS CLASS since the direct use of this class might break the native library code loading in SnappyLoader.

Author
leo

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public native void
arrayCopy(Object src, int offset, int byteLength, Object dest, int dOffset)

Implements org.xerial.snappy.SnappyApi.arrayCopy.

public native boolean
public native boolean
public native boolean
isValidCompressedBuffer(long inputAddr, long offset, long len)

Implements org.xerial.snappy.SnappyApi.isValidCompressedBuffer.

public native int
public native String
public native long
rawCompress(long inputAddr, long inputSize, long destAddr)

Implements org.xerial.snappy.SnappyApi.rawCompress.

public native int
rawCompress(ByteBuffer input, int inputOffset, int inputLength, ByteBuffer compressed, int outputOffset)

Implements org.xerial.snappy.SnappyApi.rawCompress.

public native int
rawCompress(Object input, int inputOffset, int inputByteLength, Object output, int outputOffset)

Implements org.xerial.snappy.SnappyApi.rawCompress.

public native long
rawUncompress(long inputAddr, long inputSize, long destAddr)

Implements org.xerial.snappy.SnappyApi.rawUncompress.

public native int
rawUncompress(ByteBuffer compressed, int inputOffset, int inputLength, ByteBuffer uncompressed, int outputOffset)

Implements org.xerial.snappy.SnappyApi.rawUncompress.

public native int
rawUncompress(Object input, int inputOffset, int inputLength, Object output, int outputOffset)

Implements org.xerial.snappy.SnappyApi.rawUncompress.

public void
throw_error(int errorCode)

public native int
public native int
public native long
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SnappyNativeback to summary
public SnappyNative()

Method Detail

arrayCopyback to summary
public native void arrayCopy(Object src, int offset, int byteLength, Object dest, int dOffset) throws IOException

Implements org.xerial.snappy.SnappyApi.arrayCopy.

Annotations
@Override
isValidCompressedBufferback to summary
public native boolean isValidCompressedBuffer(ByteBuffer compressed, int offset, int len) throws IOException

Implements org.xerial.snappy.SnappyApi.isValidCompressedBuffer.

Annotations
@Override
isValidCompressedBufferback to summary
public native boolean isValidCompressedBuffer(Object input, int offset, int len) throws IOException

Implements org.xerial.snappy.SnappyApi.isValidCompressedBuffer.

Annotations
@Override
isValidCompressedBufferback to summary
public native boolean isValidCompressedBuffer(long inputAddr, long offset, long len) throws IOException

Implements org.xerial.snappy.SnappyApi.isValidCompressedBuffer.

Annotations
@Override
maxCompressedLengthback to summary
public native int maxCompressedLength(int source_bytes)

Implements org.xerial.snappy.SnappyApi.maxCompressedLength.

Annotations
@Override
nativeLibraryVersionback to summary
public native String nativeLibraryVersion()
rawCompressback to summary
public native long rawCompress(long inputAddr, long inputSize, long destAddr) throws IOException

Implements org.xerial.snappy.SnappyApi.rawCompress.

Annotations
@Override
rawCompressback to summary
public native int rawCompress(ByteBuffer input, int inputOffset, int inputLength, ByteBuffer compressed, int outputOffset) throws IOException

Implements org.xerial.snappy.SnappyApi.rawCompress.

Annotations
@Override
rawCompressback to summary
public native int rawCompress(Object input, int inputOffset, int inputByteLength, Object output, int outputOffset) throws IOException

Implements org.xerial.snappy.SnappyApi.rawCompress.

Annotations
@Override
rawUncompressback to summary
public native long rawUncompress(long inputAddr, long inputSize, long destAddr) throws IOException

Implements org.xerial.snappy.SnappyApi.rawUncompress.

Annotations
@Override
rawUncompressback to summary
public native int rawUncompress(ByteBuffer compressed, int inputOffset, int inputLength, ByteBuffer uncompressed, int outputOffset) throws IOException

Implements org.xerial.snappy.SnappyApi.rawUncompress.

Annotations
@Override
rawUncompressback to summary
public native int rawUncompress(Object input, int inputOffset, int inputLength, Object output, int outputOffset) throws IOException

Implements org.xerial.snappy.SnappyApi.rawUncompress.

Annotations
@Override
throw_errorback to summary
public void throw_error(int errorCode) throws IOException
uncompressedLengthback to summary
public native int uncompressedLength(ByteBuffer compressed, int offset, int len) throws IOException

Implements org.xerial.snappy.SnappyApi.uncompressedLength.

Annotations
@Override
uncompressedLengthback to summary
public native int uncompressedLength(Object input, int offset, int len) throws IOException

Implements org.xerial.snappy.SnappyApi.uncompressedLength.

Annotations
@Override
uncompressedLengthback to summary
public native long uncompressedLength(long inputAddr, long len) throws IOException

Implements org.xerial.snappy.SnappyApi.uncompressedLength.

Annotations
@Override