Class EncodingUtils


  • public class EncodingUtils
    extends java.lang.Object
    • Method Detail

      • encodedShortStringLength

        public static int encodedShortStringLength​(java.lang.String s)
      • encodedShortStringLength

        public static int encodedShortStringLength​(long l)
      • encodedShortStringLength

        public static int encodedShortStringLength​(AMQShortString s)
      • encodedLongStringLength

        public static int encodedLongStringLength​(java.lang.String s)
      • encodedLongstrLength

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

        public static int encodedFieldTableLength​(FieldTable table)
      • writeLongAsShortString

        public static void writeLongAsShortString​(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer,
                                                  long l)
      • writeShortStringBytes

        public static void writeShortStringBytes​(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer,
                                                 AMQShortString s)
      • writeShortStringBytes

        public static void writeShortStringBytes​(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer,
                                                 java.lang.String s)
      • writeLongStringBytes

        public static void writeLongStringBytes​(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer,
                                                java.lang.String s)
      • unsignedIntegerLength

        public static int unsignedIntegerLength()
      • writeFieldTableBytes

        public static void writeFieldTableBytes​(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer,
                                                FieldTable table)
      • writeLongstr

        public static void writeLongstr​(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer,
                                        byte[] data)
      • readFieldTable

        public static FieldTable readFieldTable​(org.apache.qpid.server.bytebuffer.QpidByteBuffer input)
      • skipFieldTable

        public static void skipFieldTable​(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)
      • readLongString

        public static java.lang.String readLongString​(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)
      • skipLongString

        public static void skipLongString​(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)
      • readLongstr

        public static byte[] readLongstr​(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)
      • writeBoolean

        public static void writeBoolean​(org.apache.qpid.server.bytebuffer.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​(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)
      • writeBytes

        public static void writeBytes​(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer,
                                      byte[] data)
      • encodedCharLength

        public static int encodedCharLength()
      • asUTF8Bytes

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

        public static int getUTF8Length​(java.lang.CharSequence string)