Deprecated
as a consequence of LZ4UnknownSizeDecompressor being deprecated. See corresponding docs for further information.
Implementations of this class are usually a little slower than those of
LZ4FastDecompressor but do not require the size of the original data to
be known.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract int | Returns: the original input sizethe exact size of the compressed stream srcLen, byte[] dest, int destOff, int maxDestLen)Redeclares net. src[srcOff:srcLen] into
dest[destOff:destOff+maxDestLen] and returns the number of
decompressed bytes written into dest.
|
| public abstract int | Returns: the original input sizethe exact size of the compressed stream srcLen, ByteBuffer dest, int destOff, int maxDestLen)Uncompress |
| public final int | decompress(byte[] src, int srcOff, int srcLen, byte[] dest, int destOff)
Implements net. decompress(src, srcOff, srcLen, dest, destOff, dest..
|
| public final int | decompress(byte[] src, byte[] dest)
Convenience method, equivalent to calling
|
| public final byte[] | decompress(byte[] src, int srcOff, int srcLen, int maxDestLen)
Convenience method which returns |
| public final byte[] | decompress(byte[] src, int maxDestLen)
Convenience method, equivalent to calling
|
| public final void | |
| public String |
| LZ4SafeDecompressor | back to summary |
|---|---|
| public LZ4SafeDecompressor() | |
| decompress | back to summary |
|---|---|
| public abstract int decompress(byte[] src, int srcOff, int srcLen, byte[] dest, int destOff, int maxDestLen) Redeclares net. Decompress
| |
| decompress | back to summary |
|---|---|
| public abstract int decompress(ByteBuffer src, int srcOff, int srcLen, ByteBuffer dest, int destOff, int maxDestLen) Uncompress
| |
| decompress | back to summary |
|---|---|
| public final int decompress(byte[] src, int srcOff, int srcLen, byte[] dest, int destOff) Implements net. Convenience method, equivalent to calling
| |
| decompress | back to summary |
|---|---|
| public final int decompress(byte[] src, byte[] dest) Convenience method, equivalent to calling
| |
| decompress | back to summary |
|---|---|
| public final byte[] decompress(byte[] src, int srcOff, int srcLen, int maxDestLen) Convenience method which returns Warning: this method has an important overhead due to the fact that it needs to allocate a buffer to decompress into, and then needs to resize this buffer to the actual decompressed length. Here is how this method is implemented:
byte[] decompressed = new byte[maxDestLen];
final int decompressedLength = decompress(src, srcOff, srcLen, decompressed, 0, maxDestLen);
if (decompressedLength != decompressed.length) {
decompressed = Arrays.copyOf(decompressed, decompressedLength);
}
return decompressed;
| |
| decompress | back to summary |
|---|---|
| public final byte[] decompress(byte[] src, int maxDestLen) Convenience method, equivalent to calling
| |
| decompress | back to summary |
|---|---|
| public final void decompress(ByteBuffer src, ByteBuffer dest) Decompress | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |