Class StringEncoder

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.nio.charset.Charset charset  
    • Constructor Summary

      Constructors 
      Constructor Description
      StringEncoder()
      Creates a new instance with the current system character set.
      StringEncoder​(java.nio.charset.Charset charset)
      Creates a new instance with the specified character set.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object encode​(ChannelHandlerContext ctx, Channel channel, java.lang.Object msg)
      Transforms the specified message into another message and return the transformed message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • charset

        private final java.nio.charset.Charset charset
    • Constructor Detail

      • StringEncoder

        public StringEncoder()
        Creates a new instance with the current system character set.
      • StringEncoder

        public StringEncoder​(java.nio.charset.Charset charset)
        Creates a new instance with the specified character set.