| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private volatile boolean | |
| private final Inflater |
| Access | Constructor and Description |
|---|---|
| public | |
| public | JZlibDecoder(int
Maximum size of the decompression buffer. Must be >= 0.
If zero, maximum size is decided by the maxAllocation)ByteBufAllocator.Creates a new instance with the default wrapper ( |
| public | |
| public | JZlibDecoder(ZlibWrapper wrapper, int
Maximum size of the decompression buffer. Must be >= 0.
If zero, maximum size is decided by the maxAllocation)ByteBufAllocator.Creates a new instance with the specified wrapper and maximum buffer allocation. |
| public | |
| public | JZlibDecoder(byte[] dictionary, int
Maximum size of the decompression buffer. Must be >= 0.
If zero, maximum size is decided by the maxAllocation)ByteBufAllocator.Creates a new instance with the specified preset dictionary and maximum buffer allocation. |
| 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.
|
| protected void | decompressionBufferExhausted(ByteBuf buffer)
Overrides io. |
| public boolean | isClosed()
Implements abstract io. true if and only if the end of the compressed stream
has been reached.
|
| dictionary | back to summary |
|---|---|
| private byte[] dictionary | |
| finished | back to summary |
|---|---|
| private volatile boolean finished | |
| z | back to summary |
|---|---|
| private final Inflater z
Deprecated as a consequence of | |
| JZlibDecoder | back to summary |
|---|---|
| public JZlibDecoder() Creates a new instance with the default wrapper (
| |
| JZlibDecoder | back to summary |
|---|---|
| public JZlibDecoder(int maxAllocation) Creates a new instance with the default wrapper (
| |
| JZlibDecoder | back to summary |
|---|---|
| public JZlibDecoder(ZlibWrapper wrapper) Creates a new instance with the specified wrapper.
| |
| JZlibDecoder | back to summary |
|---|---|
| public JZlibDecoder(ZlibWrapper wrapper, int maxAllocation) Creates a new instance with the specified wrapper and maximum buffer allocation.
| |
| JZlibDecoder | back to summary |
|---|---|
| public JZlibDecoder(byte[] dictionary) Creates a new instance with the specified preset dictionary. The wrapper
is always
| |
| JZlibDecoder | back to summary |
|---|---|
| public JZlibDecoder(byte[] dictionary, int maxAllocation) Creates a new instance with the specified preset dictionary and maximum buffer allocation.
The wrapper is always
| |
| 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
| |
| decompressionBufferExhausted | back to summary |
|---|---|
| protected void decompressionBufferExhausted(ByteBuf buffer) Overrides io. Doc from io. Called when the decompression buffer cannot be expanded further.
Default implementation is a no-op, but subclasses can override in case they want to
do something before the
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Implements abstract io. Returns
| |