Class Bzip2Decoder

  • All Implemented Interfaces:
    io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

    public class Bzip2Decoder
    extends ByteToMessageDecoder
    Uncompresses a ByteBuf encoded with the Bzip2 format. See Bzip2.
    • Constructor Detail

      • Bzip2Decoder

        public Bzip2Decoder()
    • Method Detail

      • decode

        protected void decode​(io.netty.channel.ChannelHandlerContext ctx,
                              io.netty.buffer.ByteBuf in,
                              List<Object> out)
                       throws Exception
        Description copied from class: ByteToMessageDecoder
        Decode the from one ByteBuf to an other. This method will be called till either the input ByteBuf has nothing to read when return from this method or till nothing was read from the input ByteBuf.
        Specified by:
        decode in class ByteToMessageDecoder
        Parameters:
        ctx - the ChannelHandlerContext which this ByteToMessageDecoder belongs to
        in - the ByteBuf from which to read data
        out - the List to which decoded messages should be added
        Throws:
        Exception - is thrown if an error occurs
      • isClosed

        public boolean isClosed()
        Returns true if and only if the end of the compressed stream has been reached.