Class DatagramPacketDecoder

All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler

public class DatagramPacketDecoder extends MessageToMessageDecoder<DatagramPacket>
A decoder that decodes the content of the received DatagramPacket using the specified ByteBuf decoder. E.g.,
ChannelPipeline pipeline = ...;
pipeline.addLast("udpDecoder", new DatagramPacketDecoder(new ProtobufDecoder(...));