Class UTF8Util


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int calculateUTFSize​(java.lang.String str)  
      static void clearBuffer()  
      static java.lang.String readUTF​(ActiveMQBuffer input)  
      static void saveUTF​(io.netty.buffer.ByteBuf out, java.lang.String str)  
      static void writeNullableString​(io.netty.buffer.ByteBuf buffer, java.lang.String val)  
      static void writeString​(io.netty.buffer.ByteBuf buffer, java.lang.String val)  
      • Methods inherited from class java.lang.Object

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

      • writeNullableString

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

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

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

        public static java.lang.String readUTF​(ActiveMQBuffer input)
      • clearBuffer

        public static void clearBuffer()
      • calculateUTFSize

        public static int calculateUTFSize​(java.lang.String str)