Top Description Fields Constructors Methods
net.jpountz.lz4

pack-priv final Class LZ4JNISafeDecompressor

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

Deprecated

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

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

Field Summary

Modifier and TypeField and Description
public static final LZ4JNISafeDecompressor
INSTANCE

Deprecated as a consequence of LZ4JNISafeDecompressor being deprecated.
private static LZ4SafeDecompressor
SAFE_INSTANCE

Deprecated as a consequence of LZ4SafeDecompressor being deprecated.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final int
decompress(byte[] src, int srcOff, int
the exact size of the compressed stream
srcLen
,
byte[] dest, int destOff, int maxDestLen)

Implements abstract net.jpountz.lz4.LZ4SafeDecompressor.decompress.

Implements net.jpountz.lz4.LZ4UnknownSizeDecompressor.decompress.

Decompress src[srcOff:srcLen] into dest[destOff:destOff+maxDestLen] and returns the number of decompressed bytes written into dest.
public int
decompress(ByteBuffer src, int srcOff, int
the exact size of the compressed stream
srcLen
,
ByteBuffer dest, int destOff, int maxDestLen)

Implements abstract net.jpountz.lz4.LZ4SafeDecompressor.decompress.

Uncompress src[srcOff:srcLen] into dest[destOff:destOff+maxDestLen] and returns the number of decompressed bytes written into dest.
Inherited from net.jpountz.lz4.LZ4SafeDecompressor:
decompressdecompressdecompressdecompressdecompresstoString

Field Detail

INSTANCEback to summary
public static final LZ4JNISafeDecompressor INSTANCE

Deprecated

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

SAFE_INSTANCEback to summary
private static LZ4SafeDecompressor SAFE_INSTANCE

Deprecated

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

Constructor Detail

LZ4JNISafeDecompressorback to summary
pack-priv LZ4JNISafeDecompressor()

Method Detail

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

Implements abstract net.jpountz.lz4.LZ4SafeDecompressor.decompress.

Implements net.jpountz.lz4.LZ4UnknownSizeDecompressor.decompress.

Doc from net.jpountz.lz4.LZ4SafeDecompressor.decompress.

Decompress src[srcOff:srcLen] into dest[destOff:destOff+maxDestLen] and returns the number of decompressed bytes written into dest.

Parameters
srcLen:int

the exact size of the compressed stream

Returns:int

the original input size

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

Implements abstract net.jpountz.lz4.LZ4SafeDecompressor.decompress.

Doc from net.jpountz.lz4.LZ4SafeDecompressor.decompress.

Uncompress src[srcOff:srcLen] into dest[destOff:destOff+maxDestLen] and returns the number of decompressed bytes written into dest.

Parameters
srcLen:int

the exact size of the compressed stream

Returns:int

the original input size

Annotations
@Override