Top Description Fields Constructors Methods
net.jpountz.lz4

pack-priv final Class LZ4JNIFastDecompressor

extends LZ4FastDecompressor
Class Inheritance
Imports
java.nio.ByteBuffer, net.jpountz.util.ByteBufferUtils, .SafeUtils

Deprecated

as a consequence of LZ4FastDecompressor being deprecated. See corresponding docs for further information.

LZ4FastDecompressor implemented with JNI bindings to the original C implementation of LZ4.

Field Summary

Modifier and TypeField and Description
public static final LZ4JNIFastDecompressor
INSTANCE

Deprecated as a consequence of LZ4JNIFastDecompressor being deprecated.
private static LZ4FastDecompressor
SAFE_INSTANCE

Deprecated as a consequence of LZ4FastDecompressor being deprecated.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final int
decompress(byte[] src, int srcOff, byte[] dest, int destOff, int
the exact size of the original input
destLen
)

Implements abstract net.jpountz.lz4.LZ4FastDecompressor.decompress.

Implements net.jpountz.lz4.LZ4Decompressor.decompress.

Decompress src[srcOff:] into dest[destOff:destOff+destLen] and return the number of bytes read from src.
public int
decompress(ByteBuffer src, int srcOff, ByteBuffer dest, int destOff, int
the exact size of the original input
destLen
)

Implements abstract net.jpountz.lz4.LZ4FastDecompressor.decompress.

Decompress src[srcOff:] into dest[destOff:destOff+destLen] and return the number of bytes read from src.
Inherited from net.jpountz.lz4.LZ4FastDecompressor:
decompressdecompressdecompressdecompressdecompresstoString

Field Detail

INSTANCEback to summary
public static final LZ4JNIFastDecompressor INSTANCE

Deprecated

as a consequence of LZ4JNIFastDecompressor being deprecated. See corresponding docs for further information.

SAFE_INSTANCEback to summary
private static LZ4FastDecompressor SAFE_INSTANCE

Deprecated

as a consequence of LZ4FastDecompressor being deprecated. See corresponding docs for further information.

Constructor Detail

LZ4JNIFastDecompressorback to summary
pack-priv LZ4JNIFastDecompressor()

Method Detail

decompressback to summary
public final int decompress(byte[] src, int srcOff, byte[] dest, int destOff, int destLen)

Implements abstract net.jpountz.lz4.LZ4FastDecompressor.decompress.

Implements net.jpountz.lz4.LZ4Decompressor.decompress.

Doc from net.jpountz.lz4.LZ4FastDecompressor.decompress.

Decompress src[srcOff:] into dest[destOff:destOff+destLen] and return the number of bytes read from src. destLen must be exactly the size of the decompressed data.

Parameters
destLen:int

the exact size of the original input

Returns:int

the number of bytes read to restore the original input

Annotations
@Override
decompressback to summary
public int decompress(ByteBuffer src, int srcOff, ByteBuffer dest, int destOff, int destLen)

Implements abstract net.jpountz.lz4.LZ4FastDecompressor.decompress.

Doc from net.jpountz.lz4.LZ4FastDecompressor.decompress.

Decompress src[srcOff:] into dest[destOff:destOff+destLen] and return the number of bytes read from src. destLen must be exactly the size of the decompressed data. The positions and limits of the ByteBuffers remain unchanged.

Parameters
destLen:int

the exact size of the original input

Returns:int

the number of bytes read to restore the original input

Annotations
@Override