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(ByteBuffer buffer, long l)
public static void writeShortStringBytes(ByteBuffer buffer, AMQShortString s)
public static void writeLongStringBytes(ByteBuffer buffer, String s)
public static int unsignedIntegerLength()
public static void writeFieldTableBytes(ByteBuffer buffer, FieldTable table)
public static void writeLongstr(ByteBuffer buffer, byte[] data)
public static FieldTable readFieldTable(ByteBuffer input) throws AMQFrameDecodingException
AMQFrameDecodingExceptionpublic static String readLongString(ByteBuffer buffer)
public static byte[] readLongstr(ByteBuffer buffer)
public static void writeBoolean(ByteBuffer 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(ByteBuffer buffer)
public static void writeBytes(ByteBuffer buffer, byte[] data)
public static int encodedCharLength()
public static long readLongAsShortString(ByteBuffer buffer) throws AMQFrameDecodingException
AMQFrameDecodingExceptionpublic static byte[] asUTF8Bytes(CharSequence string)
public static int getUTF8Length(CharSequence string)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.