LZ4Compressors implemented with JNI bindings to the
original C implementation of LZ4.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| public static final LZ4HCJNICompressor | |
| private static LZ4Compressor |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compress(byte[] src, int srcOff, int srcLen, byte[] dest, int destOff, int maxDestLen)
Implements abstract net. src[srcOff:srcOff+srcLen] into
dest[destOff:destOff+destLen] and return the compressed
length.
|
| public int | compress(ByteBuffer src, int srcOff, int srcLen, ByteBuffer dest, int destOff, int maxDestLen)
Implements abstract net. src[srcOff:srcOff+srcLen] into
dest[destOff:destOff+destLen] and return the compressed
length.
|
| compressionLevel | back to summary |
|---|---|
| private final int compressionLevel | |
| INSTANCE | back to summary |
|---|---|
| public static final LZ4HCJNICompressor INSTANCE | |
| SAFE_INSTANCE | back to summary |
|---|---|
| private static LZ4Compressor SAFE_INSTANCE | |
| LZ4HCJNICompressor | back to summary |
|---|---|
| pack-priv LZ4HCJNICompressor() | |
| LZ4HCJNICompressor | back to summary |
|---|---|
| pack-priv LZ4HCJNICompressor(int compressionLevel) | |
| compress | back to summary |
|---|---|
| public int compress(byte[] src, int srcOff, int srcLen, byte[] dest, int destOff, int maxDestLen) Implements abstract net. Doc from net. Compress
| |
| compress | back to summary |
|---|---|
| public int compress(ByteBuffer src, int srcOff, int srcLen, ByteBuffer dest, int destOff, int maxDestLen) Implements abstract net. Doc from net. Compress
| |