Class DataImpl
java.lang.Object
org.apache.qpid.proton.codec.impl.DataImpl
- All Implemented Interfaces:
Data
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.qpid.proton.codec.Data
Data.DataType, Data.Factory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()longdecode(ByteBuffer buf) encode()longencode(ByteBuffer buf) longbooleanenter()booleanexit()format()voidfree()longgetArray()booleanbytegetByte()intgetChar()doublefloatgetFloat()intgetInt()Object[]longgetList()longgetLong()longgetMap()shortgetShort()getUUID()booleanbooleanbooleanisNull()next()prev()voidputArray(boolean described, Data.DataType type) voidputBinary(byte[] bytes) voidvoidputBoolean(boolean b) voidputByte(byte b) voidputChar(int c) voidvoidvoidvoidvoidvoidputDouble(double d) voidputFloat(float f) voidputInt(int i) voidputJavaList(List<Object> list) voidputJavaMap(Map<Object, Object> map) voidputList()voidputLong(long l) voidputMap()voidputNull()voidvoidputShort(short s) voidvoidvoidputTimestamp(Date t) voidvoidvoidvoidvoidvoidrewind()longsize()toString()type()
-
Constructor Details
-
DataImpl
public DataImpl()
-
-
Method Details
-
free
public void free() -
clear
public void clear() -
size
public long size() -
rewind
public void rewind() -
next
-
prev
-
enter
public boolean enter() -
exit
public boolean exit() -
type
-
encodedSize
public long encodedSize()- Specified by:
encodedSizein interfaceData
-
encode
-
encode
-
decode
-
putList
public void putList() -
putMap
public void putMap() -
putArray
-
putDescribed
public void putDescribed()- Specified by:
putDescribedin interfaceData
-
putNull
public void putNull() -
putBoolean
public void putBoolean(boolean b) - Specified by:
putBooleanin interfaceData
-
putUnsignedByte
- Specified by:
putUnsignedBytein interfaceData
-
putByte
public void putByte(byte b) -
putUnsignedShort
- Specified by:
putUnsignedShortin interfaceData
-
putShort
public void putShort(short s) -
putUnsignedInteger
- Specified by:
putUnsignedIntegerin interfaceData
-
putInt
public void putInt(int i) -
putChar
public void putChar(int c) -
putUnsignedLong
- Specified by:
putUnsignedLongin interfaceData
-
putLong
public void putLong(long l) -
putTimestamp
- Specified by:
putTimestampin interfaceData
-
putFloat
public void putFloat(float f) -
putDouble
public void putDouble(double d) -
putDecimal32
- Specified by:
putDecimal32in interfaceData
-
putDecimal64
- Specified by:
putDecimal64in interfaceData
-
putDecimal128
- Specified by:
putDecimal128in interfaceData
-
putUUID
-
putBinary
-
putBinary
public void putBinary(byte[] bytes) -
putString
-
putSymbol
-
putObject
-
putJavaMap
- Specified by:
putJavaMapin interfaceData
-
putJavaList
- Specified by:
putJavaListin interfaceData
-
putDescribedType
- Specified by:
putDescribedTypein interfaceData
-
getList
public long getList() -
getMap
public long getMap() -
getArray
public long getArray() -
isArrayDescribed
public boolean isArrayDescribed()- Specified by:
isArrayDescribedin interfaceData
-
getArrayType
- Specified by:
getArrayTypein interfaceData
-
isDescribed
public boolean isDescribed()- Specified by:
isDescribedin interfaceData
-
isNull
public boolean isNull() -
getBoolean
public boolean getBoolean()- Specified by:
getBooleanin interfaceData
-
getUnsignedByte
- Specified by:
getUnsignedBytein interfaceData
-
getByte
public byte getByte() -
getUnsignedShort
- Specified by:
getUnsignedShortin interfaceData
-
getShort
public short getShort() -
getUnsignedInteger
- Specified by:
getUnsignedIntegerin interfaceData
-
getInt
public int getInt() -
getChar
public int getChar() -
getUnsignedLong
- Specified by:
getUnsignedLongin interfaceData
-
getLong
public long getLong() -
getTimestamp
- Specified by:
getTimestampin interfaceData
-
getFloat
public float getFloat() -
getDouble
public double getDouble() -
getDecimal32
- Specified by:
getDecimal32in interfaceData
-
getDecimal64
- Specified by:
getDecimal64in interfaceData
-
getDecimal128
- Specified by:
getDecimal128in interfaceData
-
getUUID
-
getBinary
-
getString
-
getSymbol
-
getObject
-
getJavaMap
- Specified by:
getJavaMapin interfaceData
-
getJavaList
- Specified by:
getJavaListin interfaceData
-
getJavaArray
- Specified by:
getJavaArrayin interfaceData
-
getDescribedType
- Specified by:
getDescribedTypein interfaceData
-
format
-
toString
-