Skip navigation links
A B C D E F G H I K L M N O P Q R S T U V W X 

A

allocate(int) - Method in interface org.xerial.snappy.buffer.BufferAllocator
 
allocate(int) - Method in class org.xerial.snappy.buffer.CachedBufferAllocator
 
allocate(int) - Method in class org.xerial.snappy.buffer.DefaultBufferAllocator
 
allocateBuffersBasedOnSize(int) - Method in class org.xerial.snappy.SnappyFramedInputStream
 
api - Static variable in class org.xerial.snappy.SnappyLoader
 
archMapping - Static variable in class org.xerial.snappy.OSInfo
 
arrayCopy(Object, int, int, Object, int) - Static method in class org.xerial.snappy.Snappy
Copy bytes from source to destination
arrayCopy(Object, int, int, Object, int) - Method in class org.xerial.snappy.SnappyNative
 
available() - Method in class org.xerial.snappy.SnappyFramedInputStream
 
available() - Method in class org.xerial.snappy.SnappyInputStream
 

B

blockSize - Variable in class org.xerial.snappy.SnappyOutputStream
 
buffer - Variable in class org.xerial.snappy.SnappyFramedInputStream
Buffer contains a copy of the uncompressed data for the block.
buffer - Variable in class org.xerial.snappy.SnappyFramedOutputStream
 
BufferAllocator - Interface in org.xerial.snappy.buffer
BufferAllocator interface.
BufferAllocatorFactory - Interface in org.xerial.snappy.buffer
 
bufferQueue - Variable in class org.xerial.snappy.buffer.CachedBufferAllocator
 
bufferSize - Variable in class org.xerial.snappy.buffer.CachedBufferAllocator
 

C

CachedBufferAllocator - Class in org.xerial.snappy.buffer
Cached buffer
CachedBufferAllocator(int) - Constructor for class org.xerial.snappy.buffer.CachedBufferAllocator
 
checkSum - Variable in class org.xerial.snappy.SnappyFramedInputStream.FrameData
 
cleanUp() - Static method in class org.xerial.snappy.Snappy
Clean up a temporary file (native lib) generated by snappy-java.
cleanUpExtractedNativeLib() - Static method in class org.xerial.snappy.SnappyLoader
 
close() - Method in class org.xerial.snappy.SnappyFramedInputStream
 
close() - Method in class org.xerial.snappy.SnappyFramedOutputStream
 
close() - Method in class org.xerial.snappy.SnappyInputStream
Close the stream
close() - Method in class org.xerial.snappy.SnappyOutputStream
close the stream
closed - Variable in class org.xerial.snappy.SnappyFramedInputStream
Indicates if this instance has been closed.
closed - Variable in class org.xerial.snappy.SnappyFramedOutputStream
 
closed - Variable in class org.xerial.snappy.SnappyOutputStream
 
compatibleVersion - Variable in class org.xerial.snappy.SnappyCodec
 
compress(byte[]) - Static method in class org.xerial.snappy.Snappy
High-level API for compressing the input byte array.
compress(byte[], int, int, byte[], int) - Static method in class org.xerial.snappy.Snappy
Compress the input buffer content in [inputOffset, ...inputOffset+inputLength) then output to the specified output buffer.
compress(ByteBuffer, ByteBuffer) - Static method in class org.xerial.snappy.Snappy
Compress the content in the given input buffer.
compress(char[]) - Static method in class org.xerial.snappy.Snappy
Compress the input char array
compress(double[]) - Static method in class org.xerial.snappy.Snappy
Compress the input double array
compress(float[]) - Static method in class org.xerial.snappy.Snappy
Compress the input float array
compress(int[]) - Static method in class org.xerial.snappy.Snappy
Compress the input int array
compress(long[]) - Static method in class org.xerial.snappy.Snappy
Compress the input long array
compress(short[]) - Static method in class org.xerial.snappy.Snappy
Compress the input short array
compress(String) - Static method in class org.xerial.snappy.Snappy
Compress the input String
compress(String, String) - Static method in class org.xerial.snappy.Snappy
Compress the input string using the given encoding
compress(String, Charset) - Static method in class org.xerial.snappy.Snappy
Compress the input string using the given encoding
compressed - Variable in class org.xerial.snappy.SnappyInputStream
 
COMPRESSED_DATA_FLAG - Static variable in class org.xerial.snappy.SnappyFramed
 
compressInput() - Method in class org.xerial.snappy.SnappyOutputStream
 
contentsEquals(InputStream, InputStream) - Static method in class org.xerial.snappy.SnappyLoader
 
crc - Variable in class org.xerial.snappy.PureJavaCrc32C
the current CRC value, bit-flipped
currentHeader - Static variable in class org.xerial.snappy.SnappyCodec
 

D

DEFAULT_BLOCK_SIZE - Static variable in class org.xerial.snappy.SnappyFramedOutputStream
The default block size to use.
DEFAULT_BLOCK_SIZE - Static variable in class org.xerial.snappy.SnappyOutputStream
 
DEFAULT_MIN_COMPRESSION_RATIO - Static variable in class org.xerial.snappy.SnappyFramedOutputStream
The default min compression ratio to use.
DEFAULT_VERSION - Static variable in class org.xerial.snappy.SnappyCodec
 
DefaultBufferAllocator - Class in org.xerial.snappy.buffer
Simple buffer allocator, which does not reuse the allocated buffer
DefaultBufferAllocator() - Constructor for class org.xerial.snappy.buffer.DefaultBufferAllocator
 
directInputBuffer - Variable in class org.xerial.snappy.SnappyFramedOutputStream
 
dumpOutput() - Method in class org.xerial.snappy.SnappyOutputStream
 

E

ensureBuffer() - Method in class org.xerial.snappy.SnappyFramedInputStream
 
eof - Variable in class org.xerial.snappy.SnappyFramedInputStream
Indicates if we have reached the EOF on SnappyFramedInputStream.input.
errorCode - Variable in error org.xerial.snappy.SnappyError
 
errorCode - Variable in exception org.xerial.snappy.SnappyException
Deprecated.
 
errorCode - Variable in exception org.xerial.snappy.SnappyIOException
 
extractLibraryFile(String, String, String) - Static method in class org.xerial.snappy.SnappyLoader
Extract the specified library file to the target folder

F

factory - Static variable in class org.xerial.snappy.buffer.CachedBufferAllocator
 
factory - Static variable in class org.xerial.snappy.buffer.DefaultBufferAllocator
 
findNativeLibrary() - Static method in class org.xerial.snappy.SnappyLoader
 
finishedReading - Variable in class org.xerial.snappy.SnappyInputStream
 
flush() - Method in class org.xerial.snappy.SnappyFramedOutputStream
 
flush() - Method in class org.xerial.snappy.SnappyOutputStream
 
flushBuffer() - Method in class org.xerial.snappy.SnappyFramedOutputStream
Compresses and writes out any buffered data.
FrameAction() - Constructor for enum org.xerial.snappy.SnappyFramedInputStream.FrameAction
 
frameAction - Variable in class org.xerial.snappy.SnappyFramedInputStream.FrameMetaData
 
FrameData(int, int) - Constructor for class org.xerial.snappy.SnappyFramedInputStream.FrameData
 
frameHeader - Variable in class org.xerial.snappy.SnappyFramedInputStream
 
FrameMetaData(SnappyFramedInputStream.FrameAction, int) - Constructor for class org.xerial.snappy.SnappyFramedInputStream.FrameMetaData
 

G

getAllocator(int) - Static method in class org.xerial.snappy.buffer.CachedBufferAllocator
 
getArchName() - Static method in class org.xerial.snappy.OSInfo
 
getBufferAllocator(int) - Method in interface org.xerial.snappy.buffer.BufferAllocatorFactory
 
getBufferAllocatorFactory() - Static method in class org.xerial.snappy.buffer.CachedBufferAllocator
 
getCrc32c(ByteBuffer) - Method in class org.xerial.snappy.SnappyFramedInputStream
 
getErrorCode(int) - Static method in enum org.xerial.snappy.SnappyErrorCode
 
getErrorCode() - Method in exception org.xerial.snappy.SnappyException
Deprecated.
 
getErrorCode() - Method in exception org.xerial.snappy.SnappyIOException
 
getErrorMessage(int) - Static method in enum org.xerial.snappy.SnappyErrorCode
 
getFrameData(ByteBuffer) - Method in class org.xerial.snappy.SnappyFramedInputStream
 
getFrameMetaData(ByteBuffer) - Method in class org.xerial.snappy.SnappyFramedInputStream
 
getIntegerValue() - Method in class org.xerial.snappy.PureJavaCrc32C
 
getMagicHeader() - Static method in class org.xerial.snappy.SnappyCodec
 
getMessage() - Method in error org.xerial.snappy.SnappyError
 
getMessage() - Method in exception org.xerial.snappy.SnappyException
Deprecated.
 
getMessage() - Method in exception org.xerial.snappy.SnappyIOException
 
getNativeLibFolderPathForCurrentOS() - Static method in class org.xerial.snappy.OSInfo
 
getNativeLibraryVersion() - Static method in class org.xerial.snappy.Snappy
Get the native library version of the snappy
getOSName() - Static method in class org.xerial.snappy.OSInfo
 
getValue() - Method in class org.xerial.snappy.PureJavaCrc32C
getVersion() - Static method in class org.xerial.snappy.SnappyLoader
Get the snappy-java version by reading pom.properties embedded in jar.

H

hasNextChunk() - Method in class org.xerial.snappy.SnappyInputStream
 
hasResource(String) - Static method in class org.xerial.snappy.SnappyLoader
 
hasSufficientOutputBufferFor(int) - Method in class org.xerial.snappy.SnappyOutputStream
 
header - Variable in class org.xerial.snappy.SnappyInputStream
 
HEADER_BYTES - Static variable in class org.xerial.snappy.SnappyFramed
The header consists of the stream identifier flag, 3 bytes indicating a length of 6, and "sNaPpY" in ASCII.
HEADER_SIZE - Static variable in class org.xerial.snappy.SnappyCodec
 
headerArray - Variable in class org.xerial.snappy.SnappyCodec
 
headerBuffer - Variable in class org.xerial.snappy.SnappyFramedOutputStream
 
headerSize() - Static method in class org.xerial.snappy.SnappyCodec
 

I

IA64 - Static variable in class org.xerial.snappy.OSInfo
 
IA64_32 - Static variable in class org.xerial.snappy.OSInfo
 
IBMZ - Static variable in class org.xerial.snappy.OSInfo
 
IBMZ_64 - Static variable in class org.xerial.snappy.OSInfo
 
id - Variable in enum org.xerial.snappy.SnappyErrorCode
 
impl - Static variable in class org.xerial.snappy.Snappy
An instance of SnappyNative
in - Variable in class org.xerial.snappy.SnappyInputStream
 
input - Variable in class org.xerial.snappy.SnappyFramedInputStream
A single frame read from the underlying InputStream.
inputBuffer - Variable in class org.xerial.snappy.SnappyOutputStream
 
inputBufferAllocator - Variable in class org.xerial.snappy.SnappyOutputStream
 
inputCursor - Variable in class org.xerial.snappy.SnappyOutputStream
 
isLoaded - Static variable in class org.xerial.snappy.SnappyLoader
 
isOpen() - Method in class org.xerial.snappy.SnappyFramedInputStream
isOpen() - Method in class org.xerial.snappy.SnappyFramedOutputStream
isValidCompressedBuffer(byte[], int, int) - Static method in class org.xerial.snappy.Snappy
Returns true iff the contents of compressed buffer [offset, offset+length) can be uncompressed successfully.
isValidCompressedBuffer(byte[]) - Static method in class org.xerial.snappy.Snappy
Returns true iff the contents of compressed buffer [offset, offset+length) can be uncompressed successfully.
isValidCompressedBuffer(ByteBuffer) - Static method in class org.xerial.snappy.Snappy
Returns true iff the contents of compressed buffer [pos() ...
isValidCompressedBuffer(long, long, long) - Static method in class org.xerial.snappy.Snappy
Returns true iff the contents of compressed buffer [offset, offset+length) can be uncompressed successfully.
isValidCompressedBuffer(ByteBuffer, int, int) - Method in class org.xerial.snappy.SnappyNative
 
isValidCompressedBuffer(Object, int, int) - Method in class org.xerial.snappy.SnappyNative
 
isValidCompressedBuffer(long, long, long) - Method in class org.xerial.snappy.SnappyNative
 
isValidHeader(byte[]) - Static method in class org.xerial.snappy.SnappyInputStream
 
isValidMagicHeader() - Method in class org.xerial.snappy.SnappyCodec
 

K

KEY_SNAPPY_DISABLE_BUNDLED_LIBS - Static variable in class org.xerial.snappy.SnappyLoader
 
KEY_SNAPPY_LIB_NAME - Static variable in class org.xerial.snappy.SnappyLoader
 
KEY_SNAPPY_LIB_PATH - Static variable in class org.xerial.snappy.SnappyLoader
 
KEY_SNAPPY_TEMPDIR - Static variable in class org.xerial.snappy.SnappyLoader
 
KEY_SNAPPY_USE_SYSTEMLIB - Static variable in class org.xerial.snappy.SnappyLoader
 

L

length - Variable in class org.xerial.snappy.SnappyFramedInputStream.FrameMetaData
 
LIBRARY_NAME - Static variable in class org.xerial.snappy.SnappyBundleActivator
Name of the Snappy native library
load() - Static method in class org.xerial.snappy.SnappyLoader
 
loadNativeLibrary() - Static method in class org.xerial.snappy.SnappyLoader
Load a native library of snappy-java
loadSnappySystemProperties() - Static method in class org.xerial.snappy.SnappyLoader
load system properties when configuration file of the name SnappyLoader.SNAPPY_SYSTEM_PROPERTIES_FILE is found
lookupClassQuietly(String) - Static method in class org.xerial.snappy.SnappyFramed
 

M

magic - Variable in class org.xerial.snappy.SnappyCodec
 
MAGIC_HEADER - Static variable in class org.xerial.snappy.SnappyCodec
 
MAGIC_HEADER_HEAD - Static variable in class org.xerial.snappy.SnappyCodec
 
MAGIC_LEN - Static variable in class org.xerial.snappy.SnappyCodec
 
main(String[]) - Static method in class org.xerial.snappy.OSInfo
 
mask(int) - Static method in class org.xerial.snappy.SnappyFramed
Checksums are not stored directly, but masked, as checksumming data and then its own checksum can be problematic.
MASK_DELTA - Static variable in class org.xerial.snappy.SnappyFramed
 
maskedCrc32c(byte[]) - Static method in class org.xerial.snappy.SnappyFramed
 
maskedCrc32c(byte[], int, int) - Static method in class org.xerial.snappy.SnappyFramed
 
MAX_BLOCK_SIZE - Static variable in class org.xerial.snappy.SnappyFramedOutputStream
The x-snappy-framed specification allows for a chunk size up to 16,777,211 bytes in length.
maxCompressedLength(int) - Static method in class org.xerial.snappy.Snappy
Get the maximum byte size needed for compressing data of the given byte size.
maxCompressedLength(int) - Method in class org.xerial.snappy.SnappyNative
 
MIN_BLOCK_SIZE - Static variable in class org.xerial.snappy.SnappyOutputStream
 
minCompressionRatio - Variable in class org.xerial.snappy.SnappyFramedOutputStream
 
MINIMUM_COMPATIBLE_VERSION - Static variable in class org.xerial.snappy.SnappyCodec
 

N

nativeLibFile - Static variable in class org.xerial.snappy.SnappyLoader
 
nativeLibraryVersion() - Method in class org.xerial.snappy.SnappyNative
 

O

offset - Variable in class org.xerial.snappy.SnappyFramedInputStream.FrameData
 
org.xerial.snappy - package org.xerial.snappy
Snappy API for compressing/decompressing data.
org.xerial.snappy.buffer - package org.xerial.snappy.buffer
 
OSInfo - Class in org.xerial.snappy
Provides OS name and architecture name.
OSInfo() - Constructor for class org.xerial.snappy.OSInfo
 
out - Variable in class org.xerial.snappy.SnappyFramedOutputStream
 
out - Variable in class org.xerial.snappy.SnappyOutputStream
 
outputBuffer - Variable in class org.xerial.snappy.SnappyFramedOutputStream
 
outputBuffer - Variable in class org.xerial.snappy.SnappyOutputStream
 
outputBufferAllocator - Variable in class org.xerial.snappy.SnappyOutputStream
 
outputCursor - Variable in class org.xerial.snappy.SnappyOutputStream
 

P

position - Variable in class org.xerial.snappy.SnappyFramedInputStream
The next position to read from SnappyFramedInputStream.buffer.
PPC - Static variable in class org.xerial.snappy.OSInfo
 
PPC64 - Static variable in class org.xerial.snappy.OSInfo
 
PureJavaCrc32C - Class in org.xerial.snappy
A pure-java implementation of the CRC32 checksum that uses the CRC32-C polynomial, the same polynomial used by iSCSI and implemented on many Intel chipsets supporting SSE4.2.
PureJavaCrc32C() - Constructor for class org.xerial.snappy.PureJavaCrc32C
Create a new PureJavaCrc32 object.

Q

queueTable - Static variable in class org.xerial.snappy.buffer.CachedBufferAllocator
Use SoftReference so that having this queueTable does not prevent the GC of CachedBufferAllocator instances

R

rawCompress(long, long, long) - Static method in class org.xerial.snappy.Snappy
Zero-copy compress using memory addresses.
rawCompress(Object, int) - Static method in class org.xerial.snappy.Snappy
Compress the input data and produce a byte array of the uncompressed data
rawCompress(Object, int, int, byte[], int) - Static method in class org.xerial.snappy.Snappy
Compress the input buffer [offset,...
rawCompress(long, long, long) - Method in class org.xerial.snappy.SnappyNative
 
rawCompress(ByteBuffer, int, int, ByteBuffer, int) - Method in class org.xerial.snappy.SnappyNative
 
rawCompress(Object, int, int, Object, int) - Method in class org.xerial.snappy.SnappyNative
 
rawRead(Object, int, int) - Method in class org.xerial.snappy.SnappyInputStream
Read uncompressed data into the specified array
rawUncompress(long, long, long) - Static method in class org.xerial.snappy.Snappy
Zero-copy decompress using memory addresses.
rawUncompress(byte[], int, int, Object, int) - Static method in class org.xerial.snappy.Snappy
Uncompress the content in the input buffer.
rawUncompress(long, long, long) - Method in class org.xerial.snappy.SnappyNative
 
rawUncompress(ByteBuffer, int, int, ByteBuffer, int) - Method in class org.xerial.snappy.SnappyNative
 
rawUncompress(Object, int, int, Object, int) - Method in class org.xerial.snappy.SnappyNative
 
rawWrite(Object, int, int) - Method in class org.xerial.snappy.SnappyOutputStream
Compress the raw byte array data.
rbc - Variable in class org.xerial.snappy.SnappyFramedInputStream
 
read() - Method in class org.xerial.snappy.SnappyFramedInputStream
 
read(byte[], int, int) - Method in class org.xerial.snappy.SnappyFramedInputStream
 
read(ByteBuffer) - Method in class org.xerial.snappy.SnappyFramedInputStream
read(byte[], int, int) - Method in class org.xerial.snappy.SnappyInputStream
Reads up to len bytes of data from the input stream into an array of bytes.
read(long[], int, int) - Method in class org.xerial.snappy.SnappyInputStream
Read long array from the stream
read(long[]) - Method in class org.xerial.snappy.SnappyInputStream
Read long array from the stream
read(double[], int, int) - Method in class org.xerial.snappy.SnappyInputStream
Read double array from the stream
read(double[]) - Method in class org.xerial.snappy.SnappyInputStream
Read double array from the stream
read(int[]) - Method in class org.xerial.snappy.SnappyInputStream
Read int array from the stream
read(int[], int, int) - Method in class org.xerial.snappy.SnappyInputStream
Read int array from the stream
read(float[], int, int) - Method in class org.xerial.snappy.SnappyInputStream
Read float array from the stream
read(float[]) - Method in class org.xerial.snappy.SnappyInputStream
Read float array from the stream
read(short[], int, int) - Method in class org.xerial.snappy.SnappyInputStream
Read short array from the stream
read(short[]) - Method in class org.xerial.snappy.SnappyInputStream
Read short array from the stream
read() - Method in class org.xerial.snappy.SnappyInputStream
Reads the next byte of uncompressed data from the input stream.
readBlockHeader() - Method in class org.xerial.snappy.SnappyFramedInputStream
 
readBytes(ReadableByteChannel, ByteBuffer) - Static method in class org.xerial.snappy.SnappyFramed
 
readFully(byte[], int) - Method in class org.xerial.snappy.SnappyInputStream
 
readHeader(InputStream) - Static method in class org.xerial.snappy.SnappyCodec
 
readHeader() - Method in class org.xerial.snappy.SnappyInputStream
 
readInt(byte[], int) - Static method in class org.xerial.snappy.SnappyOutputStream
 
readNext(byte[], int, int) - Method in class org.xerial.snappy.SnappyInputStream
Read next len bytes
release(byte[]) - Method in interface org.xerial.snappy.buffer.BufferAllocator
 
release(byte[]) - Method in class org.xerial.snappy.buffer.CachedBufferAllocator
 
release(byte[]) - Method in class org.xerial.snappy.buffer.DefaultBufferAllocator
 
releaseDirectByteBuffer(ByteBuffer) - Static method in class org.xerial.snappy.SnappyFramed
Provides jvm implementation specific operation to aggressively release resources associated with buffer.
reset() - Method in class org.xerial.snappy.PureJavaCrc32C

S

serialVersionUID - Static variable in error org.xerial.snappy.SnappyError
 
serialVersionUID - Static variable in exception org.xerial.snappy.SnappyException
Deprecated.
 
setApi(SnappyNative) - Static method in class org.xerial.snappy.SnappyLoader
Set the api instance.
setBufferAllocatorFactory(BufferAllocatorFactory) - Static method in class org.xerial.snappy.buffer.CachedBufferAllocator
 
skip(ReadableByteChannel, int, ByteBuffer) - Static method in class org.xerial.snappy.SnappyFramed
 
Snappy - Class in org.xerial.snappy
Snappy API for data compression/decompression

Note: if the native libraries cannot be loaded, an ExceptionInInitializerError will be thrown at first use of this class.

Snappy() - Constructor for class org.xerial.snappy.Snappy
 
SNAPPY_SYSTEM_PROPERTIES_FILE - Static variable in class org.xerial.snappy.SnappyLoader
 
SnappyBundleActivator - Class in org.xerial.snappy
OSGi bundle entry point
SnappyBundleActivator() - Constructor for class org.xerial.snappy.SnappyBundleActivator
 
SnappyCodec - Class in org.xerial.snappy
Preamble header for SnappyOutputStream.
SnappyCodec(byte[], int, int) - Constructor for class org.xerial.snappy.SnappyCodec
 
SnappyError - Error in org.xerial.snappy
Used when serious errors (unchecked exception) are observed.
SnappyError(SnappyErrorCode) - Constructor for error org.xerial.snappy.SnappyError
 
SnappyError(SnappyErrorCode, Error) - Constructor for error org.xerial.snappy.SnappyError
 
SnappyError(SnappyErrorCode, String) - Constructor for error org.xerial.snappy.SnappyError
 
SnappyErrorCode - Enum in org.xerial.snappy
Error codes of snappy-java
SnappyErrorCode(int) - Constructor for enum org.xerial.snappy.SnappyErrorCode
 
SnappyException - Exception in org.xerial.snappy
Deprecated.
Snappy-java now uses IOException
SnappyException(int) - Constructor for exception org.xerial.snappy.SnappyException
Deprecated.
 
SnappyException(SnappyErrorCode) - Constructor for exception org.xerial.snappy.SnappyException
Deprecated.
 
SnappyException(SnappyErrorCode, Exception) - Constructor for exception org.xerial.snappy.SnappyException
Deprecated.
 
SnappyException(SnappyErrorCode, String) - Constructor for exception org.xerial.snappy.SnappyException
Deprecated.
 
SnappyFramed - Class in org.xerial.snappy
Constants and utilities for implementing x-snappy-framed.
SnappyFramed() - Constructor for class org.xerial.snappy.SnappyFramed
 
SnappyFramedInputStream - Class in org.xerial.snappy
Implements the x-snappy-framed as an InputStream and ReadableByteChannel.
SnappyFramedInputStream(InputStream) - Constructor for class org.xerial.snappy.SnappyFramedInputStream
Creates a Snappy input stream to read data from the specified underlying input stream.
SnappyFramedInputStream(InputStream, boolean) - Constructor for class org.xerial.snappy.SnappyFramedInputStream
Creates a Snappy input stream to read data from the specified underlying input stream.
SnappyFramedInputStream(ReadableByteChannel) - Constructor for class org.xerial.snappy.SnappyFramedInputStream
Creates a Snappy input stream to read data from the specified underlying channel.
SnappyFramedInputStream(ReadableByteChannel, boolean) - Constructor for class org.xerial.snappy.SnappyFramedInputStream
Creates a Snappy input stream to read data from the specified underlying channel.
SnappyFramedInputStream.FrameAction - Enum in org.xerial.snappy
 
SnappyFramedInputStream.FrameData - Class in org.xerial.snappy
 
SnappyFramedInputStream.FrameMetaData - Class in org.xerial.snappy
 
SnappyFramedOutputStream - Class in org.xerial.snappy
Implements the x-snappy-framed as an OutputStream and WritableByteChannel.
SnappyFramedOutputStream(OutputStream) - Constructor for class org.xerial.snappy.SnappyFramedOutputStream
SnappyFramedOutputStream(OutputStream, int, double) - Constructor for class org.xerial.snappy.SnappyFramedOutputStream
Creates a new SnappyFramedOutputStream instance.
SnappyFramedOutputStream(WritableByteChannel) - Constructor for class org.xerial.snappy.SnappyFramedOutputStream
SnappyFramedOutputStream(WritableByteChannel, int, double) - Constructor for class org.xerial.snappy.SnappyFramedOutputStream
Creates a new SnappyFramedOutputStream instance.
SnappyInputStream - Class in org.xerial.snappy
A stream filter for reading data compressed by SnappyOutputStream.
SnappyInputStream(InputStream) - Constructor for class org.xerial.snappy.SnappyInputStream
Create a filter for reading compressed data as a uncompressed stream
SnappyIOException - Exception in org.xerial.snappy
Enhanced IOException with SnappyErrorCode
SnappyIOException(SnappyErrorCode, String) - Constructor for exception org.xerial.snappy.SnappyIOException
 
SnappyLoader - Class in org.xerial.snappy
Internal only - Do not use this class. This class loads a native library of snappy-java (snappyjava.dll, libsnappy.so, etc.) according to the user platform (os.name and os.arch).
SnappyLoader() - Constructor for class org.xerial.snappy.SnappyLoader
 
SnappyNative - Class in org.xerial.snappy
JNI interface of the Snappy implementation.
SnappyNative() - Constructor for class org.xerial.snappy.SnappyNative
 
SnappyOutputStream - Class in org.xerial.snappy
This class implements a stream filter for writing compressed data using Snappy.
SnappyOutputStream(OutputStream) - Constructor for class org.xerial.snappy.SnappyOutputStream
 
SnappyOutputStream(OutputStream, int) - Constructor for class org.xerial.snappy.SnappyOutputStream
 
SnappyOutputStream(OutputStream, int, BufferAllocatorFactory) - Constructor for class org.xerial.snappy.SnappyOutputStream
 
start(BundleContext) - Method in class org.xerial.snappy.SnappyBundleActivator
Make a call to System.loadLibrary(String) to load the native library which assumes that the library is available on the path based on this Bundle's Manifest.
stop(BundleContext) - Method in class org.xerial.snappy.SnappyBundleActivator
 
STREAM_IDENTIFIER_FLAG - Static variable in class org.xerial.snappy.SnappyFramed
 
SUN_BUFFER_CLEANER - Static variable in class org.xerial.snappy.SnappyFramed
 
SUN_CLEANER_CLEAN - Static variable in class org.xerial.snappy.SnappyFramed
 
SUN_DIRECT_BUFFER - Static variable in class org.xerial.snappy.SnappyFramed
Sun specific mechanisms to clean up resources associated with direct byte buffers.

T

T8_0 - Static variable in class org.xerial.snappy.PureJavaCrc32C
 
T8_1 - Static variable in class org.xerial.snappy.PureJavaCrc32C
 
T8_2 - Static variable in class org.xerial.snappy.PureJavaCrc32C
 
T8_3 - Static variable in class org.xerial.snappy.PureJavaCrc32C
 
T8_4 - Static variable in class org.xerial.snappy.PureJavaCrc32C
 
T8_5 - Static variable in class org.xerial.snappy.PureJavaCrc32C
 
T8_6 - Static variable in class org.xerial.snappy.PureJavaCrc32C
 
T8_7 - Static variable in class org.xerial.snappy.PureJavaCrc32C
 
throw_error(int) - Method in class org.xerial.snappy.SnappyNative
 
throwException(int) - Static method in exception org.xerial.snappy.SnappyException
Deprecated.
 
toString() - Method in class org.xerial.snappy.SnappyCodec
 
transferFrom(InputStream) - Method in class org.xerial.snappy.SnappyFramedOutputStream
Transfers all the content from is to this OutputStream.
transferFrom(ReadableByteChannel) - Method in class org.xerial.snappy.SnappyFramedOutputStream
Transfers all the content from rbc to this WritableByteChannel.
transferTo(OutputStream) - Method in class org.xerial.snappy.SnappyFramedInputStream
Transfers the entire content of this InputStream to os.
transferTo(WritableByteChannel) - Method in class org.xerial.snappy.SnappyFramedInputStream
Transfers the entire content of this ReadableByteChannel to wbc.
translateArchNameToFolderName(String) - Static method in class org.xerial.snappy.OSInfo
 
translateOSNameToFolderName(String) - Static method in class org.xerial.snappy.OSInfo
 

U

uncompress(byte[]) - Static method in class org.xerial.snappy.Snappy
High-level API for uncompressing the input byte array.
uncompress(byte[], int, int, byte[], int) - Static method in class org.xerial.snappy.Snappy
Uncompress the content in the input buffer.
uncompress(ByteBuffer, ByteBuffer) - Static method in class org.xerial.snappy.Snappy
Uncompress the content in the input buffer.
uncompressCharArray(byte[]) - Static method in class org.xerial.snappy.Snappy
Uncompress the input data as char array
uncompressCharArray(byte[], int, int) - Static method in class org.xerial.snappy.Snappy
Uncompress the input[offset, .., offset+length) as a char array
uncompressDoubleArray(byte[]) - Static method in class org.xerial.snappy.Snappy
Uncompress the input as a double array
uncompressed - Variable in class org.xerial.snappy.SnappyInputStream
 
UNCOMPRESSED_DATA_FLAG - Static variable in class org.xerial.snappy.SnappyFramed
 
uncompressedCursor - Variable in class org.xerial.snappy.SnappyInputStream
 
uncompressedDirect - Variable in class org.xerial.snappy.SnappyFramedInputStream
The decompressed data from SnappyFramedInputStream.input.
uncompressedLength(byte[]) - Static method in class org.xerial.snappy.Snappy
Get the uncompressed byte size of the given compressed input.
uncompressedLength(byte[], int, int) - Static method in class org.xerial.snappy.Snappy
Get the uncompressed byte size of the given compressed input.
uncompressedLength(ByteBuffer) - Static method in class org.xerial.snappy.Snappy
Get the uncompressed byte size of the given compressed input.
uncompressedLength(long, long) - Static method in class org.xerial.snappy.Snappy
Get the uncompressed byte size of the given compressed input.
uncompressedLength(ByteBuffer, int, int) - Method in class org.xerial.snappy.SnappyNative
 
uncompressedLength(Object, int, int) - Method in class org.xerial.snappy.SnappyNative
 
uncompressedLength(long, long) - Method in class org.xerial.snappy.SnappyNative
 
uncompressedLimit - Variable in class org.xerial.snappy.SnappyInputStream
 
uncompressFloatArray(byte[]) - Static method in class org.xerial.snappy.Snappy
Uncompress the input as a float array
uncompressFloatArray(byte[], int, int) - Static method in class org.xerial.snappy.Snappy
Uncompress the input[offset, offset+length) as a float array
uncompressIntArray(byte[]) - Static method in class org.xerial.snappy.Snappy
Uncompress the input data as an int array
uncompressIntArray(byte[], int, int) - Static method in class org.xerial.snappy.Snappy
Uncompress the input[offset, offset+length) as an int array
uncompressLongArray(byte[]) - Static method in class org.xerial.snappy.Snappy
Uncompress the input data as a long array
uncompressLongArray(byte[], int, int) - Static method in class org.xerial.snappy.Snappy
Uncompress the input[offset, offset+length) as a long array
uncompressShortArray(byte[]) - Static method in class org.xerial.snappy.Snappy
Uncompress the input as a short array
uncompressShortArray(byte[], int, int) - Static method in class org.xerial.snappy.Snappy
Uncompress the input[offset, offset+length) as a short array
uncompressString(byte[]) - Static method in class org.xerial.snappy.Snappy
Uncompress the input as a String
uncompressString(byte[], int, int) - Static method in class org.xerial.snappy.Snappy
Uncompress the input[offset, offset+length) as a String
uncompressString(byte[], int, int, String) - Static method in class org.xerial.snappy.Snappy
Uncompress the input[offset, offset+length) as a String of the given encoding
uncompressString(byte[], int, int, Charset) - Static method in class org.xerial.snappy.Snappy
Uncompress the input[offset, offset+length) as a String of the given encoding
uncompressString(byte[], String) - Static method in class org.xerial.snappy.Snappy
Uncompress the input as a String of the given encoding
uncompressString(byte[], Charset) - Static method in class org.xerial.snappy.Snappy
Uncompress the input as a String of the given encoding
update(byte[], int, int) - Method in class org.xerial.snappy.PureJavaCrc32C
update(int) - Method in class org.xerial.snappy.PureJavaCrc32C

V

valid - Variable in class org.xerial.snappy.SnappyFramedInputStream
The position in SnappyFramedInputStream.input buffer to read to.
valueOf(String) - Static method in enum org.xerial.snappy.SnappyErrorCode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.xerial.snappy.SnappyFramedInputStream.FrameAction
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.xerial.snappy.SnappyErrorCode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.xerial.snappy.SnappyFramedInputStream.FrameAction
Returns an array containing the constants of this enum type, in the order they are declared.
verifyChecksums - Variable in class org.xerial.snappy.SnappyFramedInputStream
 
version - Variable in class org.xerial.snappy.SnappyCodec
 

W

write(int) - Method in class org.xerial.snappy.SnappyFramedOutputStream
 
write(byte[], int, int) - Method in class org.xerial.snappy.SnappyFramedOutputStream
 
write(ByteBuffer) - Method in class org.xerial.snappy.SnappyFramedOutputStream
write(byte[], int, int) - Method in class org.xerial.snappy.SnappyOutputStream
 
write(long[], int, int) - Method in class org.xerial.snappy.SnappyOutputStream
Compress the input long array data
write(double[], int, int) - Method in class org.xerial.snappy.SnappyOutputStream
Compress the input double array data
write(float[], int, int) - Method in class org.xerial.snappy.SnappyOutputStream
Compress the input float array data
write(int[], int, int) - Method in class org.xerial.snappy.SnappyOutputStream
Compress the input int array data
write(short[], int, int) - Method in class org.xerial.snappy.SnappyOutputStream
Compress the input short array data
write(long[]) - Method in class org.xerial.snappy.SnappyOutputStream
Compress the input array data
write(double[]) - Method in class org.xerial.snappy.SnappyOutputStream
Compress the input array data
write(float[]) - Method in class org.xerial.snappy.SnappyOutputStream
Compress the input array data
write(int[]) - Method in class org.xerial.snappy.SnappyOutputStream
Compress the input array data
write(short[]) - Method in class org.xerial.snappy.SnappyOutputStream
Compress the input array data
write(int) - Method in class org.xerial.snappy.SnappyOutputStream
Writes the specified byte to this output stream.
writeBlock(WritableByteChannel, ByteBuffer, boolean, int) - Method in class org.xerial.snappy.SnappyFramedOutputStream
Write a frame (block) to out.
writeCompressed(ByteBuffer) - Method in class org.xerial.snappy.SnappyFramedOutputStream
SnappyFramed.maskedCrc32c(byte[], int, int) the crc, compresses the data, determines if the compression ratio is acceptable and calls SnappyFramedOutputStream.writeBlock(java.nio.channels.WritableByteChannel, java.nio.ByteBuffer, boolean, int) to actually write the frame.
writeHeader(byte[], int) - Method in class org.xerial.snappy.SnappyCodec
 
writeHeader(OutputStream) - Method in class org.xerial.snappy.SnappyCodec
 
writeHeader(WritableByteChannel) - Method in class org.xerial.snappy.SnappyFramedOutputStream
Writes the implementation specific header or "marker bytes" to out.
writeInt(byte[], int, int) - Static method in class org.xerial.snappy.SnappyOutputStream
 

X

X86 - Static variable in class org.xerial.snappy.OSInfo
 
X86_64 - Static variable in class org.xerial.snappy.OSInfo
 
A B C D E F G H I K L M N O P Q R S T U V W X 
Skip navigation links