| Modifier and Type | Class and Description |
|---|---|
| private static enum | FastLzFrameDecoder.
Current state of decompression. |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBufChecksum | 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 FastLzFrameDecoder. | |
| 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 |
|---|---|
| public | |
| public | FastLzFrameDecoder(boolean
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 decoder with calculation of checksums as specified. |
| public | FastLzFrameDecoder(Checksum
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 decoder with specified checksum calculator. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | decode(ChannelHandlerContext
the ctx, ByteBuf ChannelHandlerContext which this ByteToMessageDecoder belongs tothe in, List<Object> ByteBuf from which to read datathe out)List to which decoded messages should be addedImplements abstract io. ByteBuf to an other.
|
| checksum | back to summary |
|---|---|
| private final ByteBufChecksum 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 FastLzFrameDecoder. | |
| 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 | |
| FastLzFrameDecoder | back to summary |
|---|---|
| public FastLzFrameDecoder() Creates the fastest FastLZ decoder without checksum calculation. | |
| FastLzFrameDecoder | back to summary |
|---|---|
| public FastLzFrameDecoder(boolean validateChecksums) Creates a FastLZ decoder with calculation of checksums as specified.
| |
| FastLzFrameDecoder | back to summary |
|---|---|
| public FastLzFrameDecoder(Checksum checksum) Creates a FastLZ decoder with specified checksum calculator. | |
| decode | back to summary |
|---|---|
| protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception Implements abstract io. Doc from io. Decode the from one
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final FastLzFrameDecoder. | |
| public static final FastLzFrameDecoder. | |
| public static final FastLzFrameDecoder. | |
| public static final FastLzFrameDecoder. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FastLzFrameDecoder. | |
| public static FastLzFrameDecoder. |
| CORRUPTED | back to summary |
|---|---|
| public static final FastLzFrameDecoder. | |
| DECOMPRESS_DATA | back to summary |
|---|---|
| public static final FastLzFrameDecoder. | |
| INIT_BLOCK | back to summary |
|---|---|
| public static final FastLzFrameDecoder. | |
| INIT_BLOCK_PARAMS | back to summary |
|---|---|
| public static final FastLzFrameDecoder. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static FastLzFrameDecoder. | |
| values | back to summary |
|---|---|
| public static FastLzFrameDecoder. | |