Class UTF8Util


  • public final class UTF8Util
    extends Object
    A UTF8Util This class will write UTFs directly to the ByteOutput (through the MessageBuffer interface)
    • Method Detail

      • writeNullableString

        public static void writeNullableString​(io.netty.buffer.ByteBuf buffer,
                                               String val)
      • writeString

        public static void writeString​(io.netty.buffer.ByteBuf buffer,
                                       String val)
      • saveUTF

        public static void saveUTF​(io.netty.buffer.ByteBuf out,
                                   String str)
      • clearBuffer

        public static void clearBuffer()
      • calculateUTFSize

        public static int calculateUTFSize​(String str)