ByteBuf using the deflate algorithm.
| Modifier and Type | Field and Description |
|---|---|
| protected final int | maxAllocation
Maximum allowed size of the decompression buffer. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ZlibDecoder(int
Maximum size of the decompression buffer. Must be >= 0.
If zero, maximum size is decided by the maxAllocation)ByteBufAllocator.Construct a new ZlibDecoder. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | decompressionBufferExhausted(ByteBuf buffer)
Called when the decompression buffer cannot be expanded further. |
| public abstract boolean | |
| protected ByteBuf | prepareDecompressBuffer(ChannelHandlerContext ctx, ByteBuf buffer, int preferredSize)
Allocate or expand the decompression buffer, without exceeding the maximum allocation. |
| maxAllocation | back to summary |
|---|---|
| protected final int maxAllocation Maximum allowed size of the decompression buffer. | |
| ZlibDecoder | back to summary |
|---|---|
| public ZlibDecoder() Same as | |
| ZlibDecoder | back to summary |
|---|---|
| public ZlibDecoder(int maxAllocation) Construct a new ZlibDecoder.
| |
| decompressionBufferExhausted | back to summary |
|---|---|
| protected void decompressionBufferExhausted(ByteBuf buffer) 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 abstract boolean isClosed() Returns | |
| prepareDecompressBuffer | back to summary |
|---|---|
| protected ByteBuf prepareDecompressBuffer(ChannelHandlerContext ctx, ByteBuf buffer, int preferredSize) Allocate or expand the decompression buffer, without exceeding the maximum allocation.
Calls | |