ByteBuf encoded with the LZF format.
See original LZF package
and LZF format for full description.
| Modifier and Type | Class and Description |
|---|---|
| private static enum | LzfDecoder.
Current state of decompression. |
| Modifier and Type | Field and Description |
|---|---|
| private int | chunkLength
Length of current received chunk of data. |
| private LzfDecoder. | |
| private ChunkDecoder | decoder
Underlying decoder in use. |
| private boolean | isCompressed
Indicates is this chunk compressed or not. |
| private static final short | MAGIC_NUMBER
Magic number of LZF chunk. |
| private int | originalLength
Original length of current received chunk of data. |
| private BufferRecycler | recycler
Object that handles details of buffer recycling. |
| Access | Constructor and Description |
|---|---|
| public | LzfDecoder()
Creates a new LZF decoder with the most optimal available methods for underlying data access. |
| public | LzfDecoder(boolean
If safeInstance)true decoder will use ChunkDecoder that only uses standard JDK access methods,
and should work on all Java platforms and JVMs.
Otherwise decoder will try to use highly optimized ChunkDecoder implementation that uses
Sun JDK's sun. class (which may be included by other JDK's as well).Creates a new LZF decoder with specified decoding instance. |
| 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.
|
| chunkLength | back to summary |
|---|---|
| private int chunkLength Length of current received chunk of data. | |
| currentState | back to summary |
|---|---|
| private LzfDecoder. | |
| decoder | back to summary |
|---|---|
| private ChunkDecoder decoder Underlying decoder in use. | |
| isCompressed | back to summary |
|---|---|
| private boolean isCompressed Indicates is this chunk compressed or not. | |
| MAGIC_NUMBER | back to summary |
|---|---|
| private static final short MAGIC_NUMBER Magic number of LZF chunk. | |
| originalLength | back to summary |
|---|---|
| private int originalLength Original length of current received chunk of data.
It is equal to | |
| recycler | back to summary |
|---|---|
| private BufferRecycler recycler Object that handles details of buffer recycling. | |
| LzfDecoder | back to summary |
|---|---|
| public LzfDecoder() Creates a new LZF decoder with the most optimal available methods for underlying data access.
It will "unsafe" instance if one can be used on current JVM.
It should be safe to call this constructor as implementations are dynamically loaded; however, on some
non-standard platforms it may be necessary to use | |
| LzfDecoder | back to summary |
|---|---|
| public LzfDecoder(boolean safeInstance) Creates a new LZF decoder with specified decoding instance.
| |
| 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 LzfDecoder. | |
| public static final LzfDecoder. | |
| public static final LzfDecoder. | |
| public static final LzfDecoder. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static LzfDecoder. | |
| public static LzfDecoder. |
| CORRUPTED | back to summary |
|---|---|
| public static final LzfDecoder. | |
| DECOMPRESS_DATA | back to summary |
|---|---|
| public static final LzfDecoder. | |
| INIT_BLOCK | back to summary |
|---|---|
| public static final LzfDecoder. | |
| INIT_ORIGINAL_LENGTH | back to summary |
|---|---|
| public static final LzfDecoder. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static LzfDecoder. | |
| values | back to summary |
|---|---|
| public static LzfDecoder. | |