LZ4FastCompressors implemented with JNI bindings to the original C
implementation of LZ4.
| Modifier and Type | Field and Description |
|---|---|
| public static final LZ4Compressor | |
| private static LZ4Compressor |
| Access | Constructor and Description |
|---|---|
| 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.
|
| INSTANCE | back to summary |
|---|---|
| public static final LZ4Compressor INSTANCE | |
| SAFE_INSTANCE | back to summary |
|---|---|
| private static LZ4Compressor SAFE_INSTANCE | |
| LZ4JNICompressor | back to summary |
|---|---|
| pack-priv LZ4JNICompressor() | |
| 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
| |