Class EncodingUtils


  • public class EncodingUtils
    extends Object
    • Method Detail

      • encodedShortStringLength

        public static int encodedShortStringLength​(String s)
      • encodedShortStringLength

        public static int encodedShortStringLength​(long l)
      • encodedShortStringLength

        public static int encodedShortStringLength​(AMQShortString s)
      • encodedLongStringLength

        public static int encodedLongStringLength​(String s)
      • encodedLongstrLength

        public static int encodedLongstrLength​(byte[] bytes)
      • encodedFieldTableLength

        public static int encodedFieldTableLength​(FieldTable table)
      • writeLongAsShortString

        public static void writeLongAsShortString​(QpidByteBuffer buffer,
                                                  long l)
      • writeShortStringBytes

        public static void writeShortStringBytes​(QpidByteBuffer buffer,
                                                 String s)
      • writeLongStringBytes

        public static void writeLongStringBytes​(QpidByteBuffer buffer,
                                                String s)
      • unsignedIntegerLength

        public static int unsignedIntegerLength()
      • writeLongstr

        public static void writeLongstr​(QpidByteBuffer buffer,
                                        byte[] data)
      • skipFieldTable

        public static void skipFieldTable​(QpidByteBuffer buffer)
      • skipLongString

        public static void skipLongString​(QpidByteBuffer buffer)
      • readLongstr

        public static byte[] readLongstr​(QpidByteBuffer buffer)
      • writeBoolean

        public static void writeBoolean​(QpidByteBuffer buffer,
                                        boolean aBoolean)
      • encodedBooleanLength

        public static int encodedBooleanLength()
      • encodedByteLength

        public static int encodedByteLength()
      • encodedShortLength

        public static int encodedShortLength()
      • encodedIntegerLength

        public static int encodedIntegerLength()
      • encodedLongLength

        public static int encodedLongLength()
      • encodedFloatLength

        public static int encodedFloatLength()
      • encodedDoubleLength

        public static int encodedDoubleLength()
      • readBytes

        public static byte[] readBytes​(QpidByteBuffer buffer)
      • writeBytes

        public static void writeBytes​(QpidByteBuffer buffer,
                                      byte[] data)
      • encodedCharLength

        public static int encodedCharLength()
      • asUTF8Bytes

        public static byte[] asUTF8Bytes​(CharSequence string)
      • getUTF8Length

        public static int getUTF8Length​(CharSequence string)