org.xerial.snappy
クラス SnappyNative
java.lang.Object
org.xerial.snappy.SnappyNative
- すべての実装されたインタフェース:
- SnappyNativeAPI
public class SnappyNative
- extends Object
- implements SnappyNativeAPI
JNI interface of the SnappyNativeAPI implementation. The native
method in this class is defined in SnappyNative.h (genereted by javah) and
SnappyNative.cpp
NEVER USE THIS CLASS DIRECTLY since it breaks the native library code
loading.
- 作成者:
- leo
|
メソッドの概要 |
void |
arrayCopy(Object src,
int offset,
int byteLength,
Object dest,
int dOffset)
|
boolean |
isValidCompressedBuffer(ByteBuffer compressed,
int offset,
int len)
|
boolean |
isValidCompressedBuffer(Object input,
int offset,
int len)
|
int |
maxCompressedLength(int source_bytes)
|
String |
nativeLibraryVersion()
|
int |
rawCompress(ByteBuffer input,
int inputOffset,
int inputLength,
ByteBuffer compressed,
int outputOffset)
|
int |
rawCompress(Object input,
int inputOffset,
int inputByteLength,
Object output,
int outputOffset)
|
int |
rawUncompress(ByteBuffer compressed,
int inputOffset,
int inputLength,
ByteBuffer uncompressed,
int outputOffset)
|
int |
rawUncompress(Object input,
int inputOffset,
int inputLength,
Object output,
int outputOffset)
|
void |
throw_error(int errorCode)
|
int |
uncompressedLength(ByteBuffer compressed,
int offset,
int len)
|
int |
uncompressedLength(Object input,
int offset,
int len)
|
| クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnappyNative
public SnappyNative()
nativeLibraryVersion
public String nativeLibraryVersion()
- 定義:
- インタフェース
SnappyNativeAPI 内の nativeLibraryVersion
rawCompress
public int rawCompress(ByteBuffer input,
int inputOffset,
int inputLength,
ByteBuffer compressed,
int outputOffset)
throws IOException
- 定義:
- インタフェース
SnappyNativeAPI 内の rawCompress
- 例外:
IOException
rawCompress
public int rawCompress(Object input,
int inputOffset,
int inputByteLength,
Object output,
int outputOffset)
- 定義:
- インタフェース
SnappyNativeAPI 内の rawCompress
rawUncompress
public int rawUncompress(ByteBuffer compressed,
int inputOffset,
int inputLength,
ByteBuffer uncompressed,
int outputOffset)
throws IOException
- 定義:
- インタフェース
SnappyNativeAPI 内の rawUncompress
- 例外:
IOException
rawUncompress
public int rawUncompress(Object input,
int inputOffset,
int inputLength,
Object output,
int outputOffset)
throws IOException
- 定義:
- インタフェース
SnappyNativeAPI 内の rawUncompress
- 例外:
IOException
maxCompressedLength
public int maxCompressedLength(int source_bytes)
- 定義:
- インタフェース
SnappyNativeAPI 内の maxCompressedLength
uncompressedLength
public int uncompressedLength(ByteBuffer compressed,
int offset,
int len)
throws IOException
- 定義:
- インタフェース
SnappyNativeAPI 内の uncompressedLength
- 例外:
IOException
uncompressedLength
public int uncompressedLength(Object input,
int offset,
int len)
throws IOException
- 定義:
- インタフェース
SnappyNativeAPI 内の uncompressedLength
- 例外:
IOException
isValidCompressedBuffer
public boolean isValidCompressedBuffer(ByteBuffer compressed,
int offset,
int len)
throws IOException
- 定義:
- インタフェース
SnappyNativeAPI 内の isValidCompressedBuffer
- 例外:
IOException
isValidCompressedBuffer
public boolean isValidCompressedBuffer(Object input,
int offset,
int len)
throws IOException
- 定義:
- インタフェース
SnappyNativeAPI 内の isValidCompressedBuffer
- 例外:
IOException
arrayCopy
public void arrayCopy(Object src,
int offset,
int byteLength,
Object dest,
int dOffset)
throws IOException
- 定義:
- インタフェース
SnappyNativeAPI 内の arrayCopy
- 例外:
IOException
throw_error
public void throw_error(int errorCode)
throws IOException
- 定義:
- インタフェース
SnappyNativeAPI 内の throw_error
- 例外:
IOException
Copyright © 2011. All Rights Reserved.