public final class EncoderImpl extends java.lang.Object implements ByteBufferEncoder
Constructor and Description |
---|
EncoderImpl(DecoderImpl decoder) |
Modifier and Type | Method and Description |
---|---|
WritableBuffer |
getBuffer() |
DecoderImpl |
getDecoder() |
AMQPType |
getType(java.lang.Object element) |
AMQPType |
getTypeFromClass(java.lang.Class clazz) |
<V> void |
register(AMQPType<V> type) |
void |
registerDescribedType(java.lang.Class clazz,
java.lang.Object descriptor) |
void |
setByteBuffer(java.nio.ByteBuffer buf) |
void |
setByteBuffer(WritableBuffer buf) |
void |
writeArray(boolean[] a) |
void |
writeArray(byte[] a) |
void |
writeArray(char[] a) |
void |
writeArray(double[] a) |
void |
writeArray(float[] a) |
void |
writeArray(int[] a) |
void |
writeArray(long[] a) |
void |
writeArray(java.lang.Object[] a) |
void |
writeArray(short[] a) |
void |
writeBinary(Binary b) |
void |
writeBoolean(boolean bool) |
void |
writeBoolean(java.lang.Boolean bool) |
void |
writeByte(byte b) |
void |
writeByte(java.lang.Byte b) |
void |
writeCharacter(char c) |
void |
writeCharacter(java.lang.Character c) |
void |
writeDecimal128(Decimal128 d) |
void |
writeDecimal32(Decimal32 d) |
void |
writeDecimal64(Decimal64 d) |
void |
writeDescribedType(DescribedType d) |
void |
writeDouble(double d) |
void |
writeDouble(java.lang.Double d) |
void |
writeFloat(float f) |
void |
writeFloat(java.lang.Float f) |
void |
writeInteger(int i) |
void |
writeInteger(java.lang.Integer i) |
void |
writeList(java.util.List l) |
void |
writeLong(long l) |
void |
writeLong(java.lang.Long l) |
void |
writeMap(java.util.Map m) |
void |
writeNull() |
void |
writeObject(java.lang.Object o) |
void |
writeRaw(byte b) |
void |
writeShort(short s) |
void |
writeShort(java.lang.Short s) |
void |
writeString(java.lang.String s) |
void |
writeSymbol(Symbol s) |
void |
writeTimestamp(java.util.Date d) |
void |
writeTimestamp(long timestamp) |
void |
writeUnsignedByte(UnsignedByte ubyte) |
void |
writeUnsignedInteger(UnsignedInteger uint) |
void |
writeUnsignedLong(UnsignedLong ulong) |
void |
writeUnsignedShort(UnsignedShort ushort) |
void |
writeUUID(java.util.UUID uuid) |
public EncoderImpl(DecoderImpl decoder)
public void setByteBuffer(java.nio.ByteBuffer buf)
setByteBuffer
in interface ByteBufferEncoder
public void setByteBuffer(WritableBuffer buf)
public WritableBuffer getBuffer()
public DecoderImpl getDecoder()
public AMQPType getType(java.lang.Object element)
public AMQPType getTypeFromClass(java.lang.Class clazz)
public void registerDescribedType(java.lang.Class clazz, java.lang.Object descriptor)
public void writeBoolean(boolean bool)
writeBoolean
in interface Encoder
public void writeBoolean(java.lang.Boolean bool)
writeBoolean
in interface Encoder
public void writeUnsignedByte(UnsignedByte ubyte)
writeUnsignedByte
in interface Encoder
public void writeUnsignedShort(UnsignedShort ushort)
writeUnsignedShort
in interface Encoder
public void writeUnsignedInteger(UnsignedInteger uint)
writeUnsignedInteger
in interface Encoder
public void writeUnsignedLong(UnsignedLong ulong)
writeUnsignedLong
in interface Encoder
public void writeShort(short s)
writeShort
in interface Encoder
public void writeShort(java.lang.Short s)
writeShort
in interface Encoder
public void writeInteger(int i)
writeInteger
in interface Encoder
public void writeInteger(java.lang.Integer i)
writeInteger
in interface Encoder
public void writeFloat(float f)
writeFloat
in interface Encoder
public void writeFloat(java.lang.Float f)
writeFloat
in interface Encoder
public void writeDouble(double d)
writeDouble
in interface Encoder
public void writeDouble(java.lang.Double d)
writeDouble
in interface Encoder
public void writeDecimal32(Decimal32 d)
writeDecimal32
in interface Encoder
public void writeDecimal64(Decimal64 d)
writeDecimal64
in interface Encoder
public void writeDecimal128(Decimal128 d)
writeDecimal128
in interface Encoder
public void writeCharacter(char c)
writeCharacter
in interface Encoder
public void writeCharacter(java.lang.Character c)
writeCharacter
in interface Encoder
public void writeTimestamp(long timestamp)
writeTimestamp
in interface Encoder
public void writeTimestamp(java.util.Date d)
writeTimestamp
in interface Encoder
public void writeBinary(Binary b)
writeBinary
in interface Encoder
public void writeString(java.lang.String s)
writeString
in interface Encoder
public void writeSymbol(Symbol s)
writeSymbol
in interface Encoder
public void writeDescribedType(DescribedType d)
writeDescribedType
in interface Encoder
public void writeArray(boolean[] a)
writeArray
in interface Encoder
public void writeArray(byte[] a)
writeArray
in interface Encoder
public void writeArray(short[] a)
writeArray
in interface Encoder
public void writeArray(int[] a)
writeArray
in interface Encoder
public void writeArray(long[] a)
writeArray
in interface Encoder
public void writeArray(float[] a)
writeArray
in interface Encoder
public void writeArray(double[] a)
writeArray
in interface Encoder
public void writeArray(char[] a)
writeArray
in interface Encoder
public void writeArray(java.lang.Object[] a)
writeArray
in interface Encoder
public void writeObject(java.lang.Object o)
writeObject
in interface Encoder
public void writeRaw(byte b)