Class EncodingUtils
- java.lang.Object
-
- org.apache.qpid.server.protocol.v0_8.EncodingUtils
-
public class EncodingUtils extends Object
-
-
Method Summary
-
-
-
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, AMQShortString s)
-
writeShortStringBytes
public static void writeShortStringBytes(QpidByteBuffer buffer, String s)
-
writeLongStringBytes
public static void writeLongStringBytes(QpidByteBuffer buffer, String s)
-
unsignedIntegerLength
public static int unsignedIntegerLength()
-
writeFieldTableBytes
public static void writeFieldTableBytes(QpidByteBuffer buffer, FieldTable table)
-
writeLongstr
public static void writeLongstr(QpidByteBuffer buffer, byte[] data)
-
readFieldTable
public static FieldTable readFieldTable(QpidByteBuffer input)
-
skipFieldTable
public static void skipFieldTable(QpidByteBuffer buffer)
-
readLongString
public static String readLongString(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()
-
readLongAsShortString
public static long readLongAsShortString(QpidByteBuffer buffer) throws AMQFrameDecodingException
- Throws:
AMQFrameDecodingException
-
asUTF8Bytes
public static byte[] asUTF8Bytes(CharSequence string)
-
getUTF8Length
public static int getUTF8Length(CharSequence string)
-
-