public class EncodingUtils extends Object
public static int encodedShortStringLength(String s)
public static int encodedShortStringLength(long l)
public static int encodedShortStringLength(AMQShortString s)
public static int encodedLongStringLength(String s)
public static int encodedLongstrLength(byte[] bytes)
public static int encodedFieldTableLength(FieldTable table)
public static void writeLongAsShortString(QpidByteBuffer buffer, long l)
public static void writeShortStringBytes(QpidByteBuffer buffer, AMQShortString s)
public static void writeLongStringBytes(QpidByteBuffer buffer, String s)
public static int unsignedIntegerLength()
public static void writeFieldTableBytes(QpidByteBuffer buffer, FieldTable table)
public static void writeLongstr(QpidByteBuffer buffer, byte[] data)
public static FieldTable readFieldTable(QpidByteBuffer input) throws AMQFrameDecodingException
AMQFrameDecodingExceptionpublic static String readLongString(QpidByteBuffer buffer)
public static byte[] readLongstr(QpidByteBuffer buffer)
public static void writeBoolean(QpidByteBuffer buffer, boolean aBoolean)
public static int encodedBooleanLength()
public static int encodedByteLength()
public static int encodedShortLength()
public static int encodedIntegerLength()
public static int encodedLongLength()
public static int encodedFloatLength()
public static int encodedDoubleLength()
public static byte[] readBytes(QpidByteBuffer buffer)
public static void writeBytes(QpidByteBuffer buffer, byte[] data)
public static int encodedCharLength()
public static long readLongAsShortString(QpidByteBuffer buffer)
public static byte[] asUTF8Bytes(CharSequence string)
public static int getUTF8Length(CharSequence string)
Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.