io.netty.handler.codec.string.StringEncoder.class Maven / Gradle / Ivy
???? 2 ] +io/netty/handler/codec/string/StringEncoder JLio/netty/handler/codec/MessageToMessageEncoder; .io/netty/handler/codec/MessageToMessageEncoder StringEncoder.java *Lio/netty/channel/ChannelHandler$Sharable; (io/netty/channel/ChannelHandler$Sharable io/netty/channel/ChannelHandler
Sharable charset Ljava/nio/charset/Charset; ()V java/nio/charset/Charset defaultCharset ()Ljava/nio/charset/Charset;
(Ljava/nio/charset/Charset;)V
this -Lio/netty/handler/codec/string/StringEncoder;
java/lang/NullPointerException
(Ljava/lang/String;)V !
"
$ encode S(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/CharSequence;Ljava/util/List;)V java/lang/Exception ( java/lang/CharSequence * length ()I , - + . &io/netty/channel/ChannelHandlerContext 0 alloc $()Lio/netty/buffer/ByteBufAllocator; 2 3 1 4 java/nio/CharBuffer 6 wrap /(Ljava/lang/CharSequence;)Ljava/nio/CharBuffer; 8 9
7 : io/netty/buffer/ByteBufUtil < encodeString l(Lio/netty/buffer/ByteBufAllocator;Ljava/nio/CharBuffer;Ljava/nio/charset/Charset;)Lio/netty/buffer/ByteBuf; > ?
= @ java/util/List B add (Ljava/lang/Object;)Z D E C F ctx (Lio/netty/channel/ChannelHandlerContext; msg Ljava/lang/CharSequence; out $Ljava/util/List; Ljava/util/List; M(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V &