| Modifier and Type | Class and Description |
|---|---|
| private static enum | FastLzDecompressor.State
Current state of decompression. |
| Modifier and Type | Field and Description |
|---|---|
| private final BufferChecksum | checksum
Underlying checksum calculator in use. |
| private int | chunkLength
Length of current received chunk of data. |
| private int | currentChecksum
Checksum value of current received chunk of data which has checksum. |
| private FastLzDecompressor. | |
| private boolean | hasChecksum
Indicates is this chunk has checksum or not. |
| private boolean | isCompressed
Indicates is this chunk compressed or not. |
| private int | originalLength
Original of current received chunk of data. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Buffer | decompress(Buffer
the in, BufferAllocator Buffer that contains the data to be decompressed.the allocator)BufferAllocator that is used to allocate a new buffer (if needed) to write the
decompressed bytes too.Implements io. Buffer and decompress into a new Buffer that will be
allocated (if needed) from the BufferAllocator.
|
| public boolean | isClosed()
Implements io. true if the decompressor was closed, false otherwise.
|
| public boolean | isFinished()
Implements io. true if the decompressor was finish.
|
| public static Supplier | Returns: the factory.Creates the fastest FastLZ decompressor factory without checksum calculation. |
| public static Supplier | Returns: the factory.If true, the checksum field will be validated against the actual
uncompressed data, and if the checksums do not match, a suitable
validateChecksums)DecompressionException will be thrown.
Note, that in this case decoder will use java.
as a default checksum calculator.Creates a FastLZ decompressor factory with calculation of checksums as specified. |
| public static Supplier | Returns: the factory.the checksum)Checksum instance to use to check data for integrity.
You may set null if you do not want to validate checksum of each block.Creates a FastLZ decompressor factory with specified checksum calculator. |
| private void |
| checksum | back to summary |
|---|---|
| private final BufferChecksum checksum Underlying checksum calculator in use. | |
| chunkLength | back to summary |
|---|---|
| private int chunkLength Length of current received chunk of data. | |
| currentChecksum | back to summary |
|---|---|
| private int currentChecksum Checksum value of current received chunk of data which has checksum. | |
| currentState | back to summary |
|---|---|
| private FastLzDecompressor. | |
| hasChecksum | back to summary |
|---|---|
| private boolean hasChecksum Indicates is this chunk has checksum or not. | |
| isCompressed | back to summary |
|---|---|
| private boolean isCompressed Indicates is this chunk compressed or not. | |
| originalLength | back to summary |
|---|---|
| private int originalLength Original of current received chunk of data.
It is equal to | |
| FastLzDecompressor | back to summary |
|---|---|
| private FastLzDecompressor(Checksum checksum) | |
| close | back to summary |
|---|---|
| public void close() Implements io. Doc from io. Close the decompressor. After this method was called
| |
| decompress | back to summary |
|---|---|
| public Buffer decompress(Buffer in, BufferAllocator allocator) throws DecompressionException Implements io. Doc from io. This method will read from the input isFinished() is false
input
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Implements io. Doc from io. Return | |
| isFinished | back to summary |
|---|---|
| public boolean isFinished() Implements io. Doc from io. Returns
| |
| newFactory | back to summary |
|---|---|
| public static Supplier Creates the fastest FastLZ decompressor factory without checksum calculation.
| |
| newFactory | back to summary |
|---|---|
| public static Supplier Creates a FastLZ decompressor factory with calculation of checksums as specified.
| |
| newFactory | back to summary |
|---|---|
| public static Supplier Creates a FastLZ decompressor factory with specified checksum calculator.
| |
| streamCorrupted | back to summary |
|---|---|
| private void streamCorrupted(String message) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final FastLzDecompressor. | |
| public static final FastLzDecompressor. | |
| public static final FastLzDecompressor. | |
| public static final FastLzDecompressor. | |
| public static final FastLzDecompressor. | |
| public static final FastLzDecompressor. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FastLzDecompressor. | |
| public static FastLzDecompressor. |
| CLOSED | back to summary |
|---|---|
| public static final FastLzDecompressor. | |
| CORRUPTED | back to summary |
|---|---|
| public static final FastLzDecompressor. | |
| DECOMPRESS_DATA | back to summary |
|---|---|
| public static final FastLzDecompressor. | |
| DONE | back to summary |
|---|---|
| public static final FastLzDecompressor. | |
| INIT_BLOCK | back to summary |
|---|---|
| public static final FastLzDecompressor. | |
| INIT_BLOCK_PARAMS | back to summary |
|---|---|
| public static final FastLzDecompressor. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static FastLzDecompressor. | |
| values | back to summary |
|---|---|
| public static FastLzDecompressor. | |