| Modifier and Type | Field and Description |
|---|---|
| private Decompressor | |
| private final Supplier | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | DecompressionHandler(Supplier<? extends Decompressor>
the decompressorSupplier)Supplier that is used to create the Decompressor.Creates a new instance. |
| public | DecompressionHandler(Supplier<? extends Decompressor>
the decompressorSupplier, boolean Supplier that is used to create the Decompressor.true if the bytes should be discarded after the Compressor
finished the compression of the whole stream.Creates a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | channelInactive(ChannelHandlerContext ctx)
Overrides io. Overrides default io. Channel of the ChannelHandlerContext was registered is now inactive and reached its
end of lifetime.
|
| private void | |
| protected void | decode(ChannelHandlerContext
the ctx, Buffer ChannelHandlerContext which this ByteToMessageDecoder belongs tothe in)Buffer from which to read dataImplements abstract io. Buffer to another.
|
| protected void | |
| protected void | handlerRemoved0(ChannelHandlerContext ctx)
Overrides io. ByteToMessageDecoder was removed from the actual context and it doesn't
handle events anymore.
|
| decompressor | back to summary |
|---|---|
| private Decompressor decompressor | |
| decompressorSupplier | back to summary |
|---|---|
| private final Supplier<? extends Decompressor> decompressorSupplier | |
| discardBytesAfterFinished | back to summary |
|---|---|
| private final boolean discardBytesAfterFinished | |
| DecompressionHandler | back to summary |
|---|---|
| public DecompressionHandler(Supplier<? extends Decompressor> decompressorSupplier) Creates a new instance.
| |
| DecompressionHandler | back to summary |
|---|---|
| public DecompressionHandler(Supplier<? extends Decompressor> decompressorSupplier, boolean discardBytesAfterFinished) Creates a new instance.
| |
| channelInactive | back to summary |
|---|---|
| public void channelInactive(ChannelHandlerContext ctx) throws Exception Overrides io. Overrides default io. Doc from io. The
| |
| closeDecompressor | back to summary |
|---|---|
| private void closeDecompressor() | |
| decode | back to summary |
|---|---|
| protected void decode(ChannelHandlerContext ctx, Buffer in) throws Exception Implements abstract io. Doc from io. Decode the from one
| |
| handlerAdded0 | back to summary |
|---|---|
| protected void handlerAdded0(ChannelHandlerContext ctx) throws Exception Overrides io.
| |
| handlerRemoved0 | back to summary |
|---|---|
| protected void handlerRemoved0(ChannelHandlerContext ctx) throws Exception Overrides io. Doc from io. Gets called after the
| |