@ChannelHandler.Sharable public class DatagramPacketStringDecoder extends io.netty.handler.codec.MessageToMessageDecoder<io.netty.channel.AddressedEnvelope<Object,InetSocketAddress>>
Constructor and Description |
---|
DatagramPacketStringDecoder()
Creates a new instance with the current system character set.
|
DatagramPacketStringDecoder(Charset charset)
Creates a new instance with the specified character set.
|
Modifier and Type | Method and Description |
---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.AddressedEnvelope<Object,InetSocketAddress> msg,
List<Object> out) |
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
handlerAdded, handlerRemoved, isSharable
public DatagramPacketStringDecoder()
public DatagramPacketStringDecoder(Charset charset)
protected void decode(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.AddressedEnvelope<Object,InetSocketAddress> msg, List<Object> out) throws Exception
decode
in class io.netty.handler.codec.MessageToMessageDecoder<io.netty.channel.AddressedEnvelope<Object,InetSocketAddress>>
Exception
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.