Class FixedLengthFrameDecoder

  • All Implemented Interfaces:
    ChannelHandler

    public class FixedLengthFrameDecoder
    extends ByteToMessageDecoder
    A decoder that splits the received Buffers by the fixed number of bytes. For example, if you received the following four fragmented packets:
     +---+----+------+----+
     | A | BC | DEFG | HI |
     +---+----+------+----+
     
    A FixedLengthFrameDecoder(3) will decode them into the following three packets with the fixed length:
     +-----+-----+-----+
     | ABC | DEF | GHI |
     +-----+-----+-----+