Class EncodingUtils
- java.lang.Object
-
- org.apache.qpid.server.protocol.v0_8.EncodingUtils
-
public class EncodingUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]asUTF8Bytes(java.lang.CharSequence string)static intencodedBooleanLength()static intencodedByteLength()static intencodedCharLength()static intencodedDoubleLength()static intencodedFieldTableLength(FieldTable table)static intencodedFloatLength()static intencodedIntegerLength()static intencodedLongLength()static intencodedLongStringLength(java.lang.String s)static intencodedLongstrLength(byte[] bytes)static intencodedShortLength()static intencodedShortStringLength(long l)static intencodedShortStringLength(java.lang.String s)static intencodedShortStringLength(AMQShortString s)static intgetUTF8Length(java.lang.CharSequence string)static byte[]readBytes(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)static FieldTablereadFieldTable(org.apache.qpid.server.bytebuffer.QpidByteBuffer input)static longreadLongAsShortString(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)static byte[]readLongstr(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)static java.lang.StringreadLongString(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)static voidskipFieldTable(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)static voidskipLongString(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer)static intunsignedIntegerLength()static voidwriteBoolean(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer, boolean aBoolean)static voidwriteBytes(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer, byte[] data)static voidwriteFieldTableBytes(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer, FieldTable table)static voidwriteLongAsShortString(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer, long l)static voidwriteLongstr(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer, byte[] data)static voidwriteLongStringBytes(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer, java.lang.String s)static voidwriteShortStringBytes(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer, java.lang.String s)static voidwriteShortStringBytes(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer, AMQShortString s)
-
-
-
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()
-
readLongAsShortString
public static long readLongAsShortString(org.apache.qpid.server.bytebuffer.QpidByteBuffer buffer) throws AMQFrameDecodingException- Throws:
AMQFrameDecodingException
-
asUTF8Bytes
public static byte[] asUTF8Bytes(java.lang.CharSequence string)
-
getUTF8Length
public static int getUTF8Length(java.lang.CharSequence string)
-
-