or ChannelBuffer into a decoded ChannelBuffer and vice versa. org.jboss.netty.handler.codec.compression Encoder and decoder which compresses and decompresses ChannelBuffer s in a compression format such as zlib and gzip . org.jboss.netty.handler.codec.frame Extensible decoder and its common implementations which deal with the packet fragmentation and reassembly issue found in a stream-based transport such