Class DataImpl
- java.lang.Object
-
- org.apache.qpid.proton.codec.impl.DataImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.qpid.proton.codec.Data
Data.DataType, Data.Factory
-
-
Constructor Summary
Constructors Constructor Description DataImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
long
decode(java.nio.ByteBuffer buf)
Binary
encode()
long
encode(java.nio.ByteBuffer buf)
long
encodedSize()
boolean
enter()
boolean
exit()
java.lang.String
format()
void
free()
long
getArray()
Data.DataType
getArrayType()
Binary
getBinary()
boolean
getBoolean()
byte
getByte()
int
getChar()
Decimal128
getDecimal128()
Decimal32
getDecimal32()
Decimal64
getDecimal64()
DescribedType
getDescribedType()
double
getDouble()
float
getFloat()
int
getInt()
java.lang.Object[]
getJavaArray()
java.util.List<java.lang.Object>
getJavaList()
java.util.Map<java.lang.Object,java.lang.Object>
getJavaMap()
long
getList()
long
getLong()
long
getMap()
java.lang.Object
getObject()
short
getShort()
java.lang.String
getString()
Symbol
getSymbol()
java.util.Date
getTimestamp()
UnsignedByte
getUnsignedByte()
UnsignedInteger
getUnsignedInteger()
UnsignedLong
getUnsignedLong()
UnsignedShort
getUnsignedShort()
java.util.UUID
getUUID()
boolean
isArrayDescribed()
boolean
isDescribed()
boolean
isNull()
Data.DataType
next()
Data.DataType
prev()
void
putArray(boolean described, Data.DataType type)
void
putBinary(byte[] bytes)
void
putBinary(Binary bytes)
void
putBoolean(boolean b)
void
putByte(byte b)
void
putChar(int c)
void
putDecimal128(Decimal128 d)
void
putDecimal32(Decimal32 d)
void
putDecimal64(Decimal64 d)
void
putDescribed()
void
putDescribedType(DescribedType dt)
void
putDouble(double d)
void
putFloat(float f)
void
putInt(int i)
void
putJavaList(java.util.List<java.lang.Object> list)
void
putJavaMap(java.util.Map<java.lang.Object,java.lang.Object> map)
void
putList()
void
putLong(long l)
void
putMap()
void
putNull()
void
putObject(java.lang.Object o)
void
putShort(short s)
void
putString(java.lang.String string)
void
putSymbol(Symbol symbol)
void
putTimestamp(java.util.Date t)
void
putUnsignedByte(UnsignedByte ub)
void
putUnsignedInteger(UnsignedInteger ui)
void
putUnsignedLong(UnsignedLong ul)
void
putUnsignedShort(UnsignedShort us)
void
putUUID(java.util.UUID u)
void
rewind()
long
size()
java.lang.String
toString()
Data.DataType
type()
-
-
-
Method Detail
-
next
public Data.DataType next()
-
prev
public Data.DataType prev()
-
type
public Data.DataType type()
-
encodedSize
public long encodedSize()
- Specified by:
encodedSize
in interfaceData
-
putArray
public void putArray(boolean described, Data.DataType type)
-
putDescribed
public void putDescribed()
- Specified by:
putDescribed
in interfaceData
-
putBoolean
public void putBoolean(boolean b)
- Specified by:
putBoolean
in interfaceData
-
putUnsignedByte
public void putUnsignedByte(UnsignedByte ub)
- Specified by:
putUnsignedByte
in interfaceData
-
putUnsignedShort
public void putUnsignedShort(UnsignedShort us)
- Specified by:
putUnsignedShort
in interfaceData
-
putUnsignedInteger
public void putUnsignedInteger(UnsignedInteger ui)
- Specified by:
putUnsignedInteger
in interfaceData
-
putUnsignedLong
public void putUnsignedLong(UnsignedLong ul)
- Specified by:
putUnsignedLong
in interfaceData
-
putTimestamp
public void putTimestamp(java.util.Date t)
- Specified by:
putTimestamp
in interfaceData
-
putDecimal32
public void putDecimal32(Decimal32 d)
- Specified by:
putDecimal32
in interfaceData
-
putDecimal64
public void putDecimal64(Decimal64 d)
- Specified by:
putDecimal64
in interfaceData
-
putDecimal128
public void putDecimal128(Decimal128 d)
- Specified by:
putDecimal128
in interfaceData
-
putJavaMap
public void putJavaMap(java.util.Map<java.lang.Object,java.lang.Object> map)
- Specified by:
putJavaMap
in interfaceData
-
putJavaList
public void putJavaList(java.util.List<java.lang.Object> list)
- Specified by:
putJavaList
in interfaceData
-
putDescribedType
public void putDescribedType(DescribedType dt)
- Specified by:
putDescribedType
in interfaceData
-
isArrayDescribed
public boolean isArrayDescribed()
- Specified by:
isArrayDescribed
in interfaceData
-
getArrayType
public Data.DataType getArrayType()
- Specified by:
getArrayType
in interfaceData
-
isDescribed
public boolean isDescribed()
- Specified by:
isDescribed
in interfaceData
-
getBoolean
public boolean getBoolean()
- Specified by:
getBoolean
in interfaceData
-
getUnsignedByte
public UnsignedByte getUnsignedByte()
- Specified by:
getUnsignedByte
in interfaceData
-
getUnsignedShort
public UnsignedShort getUnsignedShort()
- Specified by:
getUnsignedShort
in interfaceData
-
getUnsignedInteger
public UnsignedInteger getUnsignedInteger()
- Specified by:
getUnsignedInteger
in interfaceData
-
getUnsignedLong
public UnsignedLong getUnsignedLong()
- Specified by:
getUnsignedLong
in interfaceData
-
getTimestamp
public java.util.Date getTimestamp()
- Specified by:
getTimestamp
in interfaceData
-
getDecimal32
public Decimal32 getDecimal32()
- Specified by:
getDecimal32
in interfaceData
-
getDecimal64
public Decimal64 getDecimal64()
- Specified by:
getDecimal64
in interfaceData
-
getDecimal128
public Decimal128 getDecimal128()
- Specified by:
getDecimal128
in interfaceData
-
getJavaMap
public java.util.Map<java.lang.Object,java.lang.Object> getJavaMap()
- Specified by:
getJavaMap
in interfaceData
-
getJavaList
public java.util.List<java.lang.Object> getJavaList()
- Specified by:
getJavaList
in interfaceData
-
getJavaArray
public java.lang.Object[] getJavaArray()
- Specified by:
getJavaArray
in interfaceData
-
getDescribedType
public DescribedType getDescribedType()
- Specified by:
getDescribedType
in interfaceData
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-