ByteBuf using the inflate algorithm.
| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBufChecksum | |
| private boolean | |
| private final boolean | |
| private final byte[] | |
| private static final int | |
| private static final int | |
| private static final int | |
| private volatile boolean | |
| private int | |
| private static final int | |
| private static final int | |
| private JdkZlibDecoder. | |
| private Inflater | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | JdkZlibDecoder(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 | JdkZlibDecoder(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. |
| public | |
| public | JdkZlibDecoder(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 | |
| public | |
| public | |
| private | JdkZlibDecoder(ZlibWrapper wrapper, byte[] dictionary, boolean decompressConcatenated, int maxAllocation)
|
| 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. |
| private boolean | |
| protected void | handlerRemoved0(ChannelHandlerContext ctx)
Overrides io. ByteToMessageDecoder was removed from the actual context and it doesn't handle
events anymore.
|
| public boolean | isClosed()
Implements abstract io. true if and only if the end of the compressed stream
has been reached.
|
| private static boolean | |
| private boolean | Returns: true if the footer could be read, false if the read could not be performed as
the input ByteBuf doesn't have enough readable bytes (8 bytes).the input. in)Read the GZIP footer. |
| private boolean | |
| private boolean | Returns: true if the operation is complete and we can move to the next state, false if we need
the retry again once we have more readable bytes.the input in, int the mask that should be present in the flagMask)flags when we need to skip bytes.Skip bytes in the input if needed until we find the end marker |
| private boolean | |
| private boolean |
| crc | back to summary |
|---|---|
| private final ByteBufChecksum crc | |
| decideZlibOrNone | back to summary |
|---|---|
| private boolean decideZlibOrNone | |
| decompressConcatenated | back to summary |
|---|---|
| private final boolean decompressConcatenated | |
| dictionary | back to summary |
|---|---|
| private final byte[] dictionary | |
| FCOMMENT | back to summary |
|---|---|
| private static final int FCOMMENT | |
| FEXTRA | back to summary |
|---|---|
| private static final int FEXTRA | |
| FHCRC | back to summary |
|---|---|
| private static final int FHCRC | |
| finished | back to summary |
|---|---|
| private volatile boolean finished | |
| flags | back to summary |
|---|---|
| private int flags | |
| FNAME | back to summary |
|---|---|
| private static final int FNAME | |
| FRESERVED | back to summary |
|---|---|
| private static final int FRESERVED | |
| gzipState | back to summary |
|---|---|
| private JdkZlibDecoder. | |
| inflater | back to summary |
|---|---|
| private Inflater inflater | |
| xlen | back to summary |
|---|---|
| private int xlen | |
| JdkZlibDecoder | back to summary |
|---|---|
| public JdkZlibDecoder() Creates a new instance with the default wrapper ( | |
| JdkZlibDecoder | back to summary |
|---|---|
| public JdkZlibDecoder(int maxAllocation) Creates a new instance with the default wrapper (
| |
| JdkZlibDecoder | back to summary |
|---|---|
| public JdkZlibDecoder(byte[] dictionary) Creates a new instance with the specified preset dictionary. The wrapper
is always | |
| JdkZlibDecoder | back to summary |
|---|---|
| public JdkZlibDecoder(byte[] dictionary, int maxAllocation) Creates a new instance with the specified preset dictionary and maximum buffer allocation.
The wrapper is always
| |
| JdkZlibDecoder | back to summary |
|---|---|
| public JdkZlibDecoder(ZlibWrapper wrapper) Creates a new instance with the specified wrapper.
Be aware that only | |
| JdkZlibDecoder | back to summary |
|---|---|
| public JdkZlibDecoder(ZlibWrapper wrapper, int maxAllocation) Creates a new instance with the specified wrapper and maximum buffer allocation.
Be aware that only
| |
| JdkZlibDecoder | back to summary |
|---|---|
| public JdkZlibDecoder(ZlibWrapper wrapper, boolean decompressConcatenated) | |
| JdkZlibDecoder | back to summary |
|---|---|
| public JdkZlibDecoder(ZlibWrapper wrapper, boolean decompressConcatenated, int maxAllocation) | |
| JdkZlibDecoder | back to summary |
|---|---|
| public JdkZlibDecoder(boolean decompressConcatenated) | |
| JdkZlibDecoder | back to summary |
|---|---|
| public JdkZlibDecoder(boolean decompressConcatenated, int maxAllocation) | |
| JdkZlibDecoder | back to summary |
|---|---|
| private JdkZlibDecoder(ZlibWrapper wrapper, byte[] dictionary, boolean decompressConcatenated, int maxAllocation) | |
| 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
| |
| handleGzipFooter | back to summary |
|---|---|
| private boolean handleGzipFooter(ByteBuf in) | |
| handlerRemoved0 | back to summary |
|---|---|
| protected void handlerRemoved0(ChannelHandlerContext ctx) throws Exception Overrides io. Doc from io. Gets called after the
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() Implements abstract io. Doc from io. Returns
| |
| looksLikeZlib | back to summary |
|---|---|
| private static boolean looksLikeZlib(short cmf_flg) | |
| readGZIPFooter | back to summary |
|---|---|
| private boolean readGZIPFooter(ByteBuf in) Read the GZIP footer. | |
| readGZIPHeader | back to summary |
|---|---|
| private boolean readGZIPHeader(ByteBuf in) | |
| skipIfNeeded | back to summary |
|---|---|
| private boolean skipIfNeeded(ByteBuf in, int flagMask) Skip bytes in the input if needed until we find the end marker
| |
| verifyCrc | back to summary |
|---|---|
| private boolean verifyCrc(ByteBuf in) Verifies CRC. | |
| verifyCrc16 | back to summary |
|---|---|
| private boolean verifyCrc16(ByteBuf in) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final JdkZlibDecoder. | |
| public static final JdkZlibDecoder. | |
| public static final JdkZlibDecoder. | |
| public static final JdkZlibDecoder. | |
| public static final JdkZlibDecoder. | |
| public static final JdkZlibDecoder. | |
| public static final JdkZlibDecoder. | |
| public static final JdkZlibDecoder. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static JdkZlibDecoder. | |
| public static JdkZlibDecoder. |
| FLG_READ | back to summary |
|---|---|
| public static final JdkZlibDecoder. | |
| FOOTER_START | back to summary |
|---|---|
| public static final JdkZlibDecoder. | |
| HEADER_END | back to summary |
|---|---|
| public static final JdkZlibDecoder. | |
| HEADER_START | back to summary |
|---|---|
| public static final JdkZlibDecoder. | |
| PROCESS_FHCRC | back to summary |
|---|---|
| public static final JdkZlibDecoder. | |
| SKIP_COMMENT | back to summary |
|---|---|
| public static final JdkZlibDecoder. | |
| SKIP_FNAME | back to summary |
|---|---|
| public static final JdkZlibDecoder. | |
| XLEN_READ | back to summary |
|---|---|
| public static final JdkZlibDecoder. | |
| GzipState | back to summary |
|---|---|
| private GzipState() | |
| valueOf | back to summary |
|---|---|
| public static JdkZlibDecoder. | |
| values | back to summary |
|---|---|
| public static JdkZlibDecoder. | |