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 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()intReturns the maximum decode depth allowed before error when decoding Maps, Lists, Arrays, and certain related DescribedTypes from an encoded payload.shortgetShort()getUUID()intbooleanbooleanbooleanisNull()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()voidsetMaxDecodeDepth(int maxDecodeDepth) Configures the maximum decode depth allowed before error when decoding Maps, Lists, Arrays, and certain related DescribedTypes from an encoded payload.voidsetZeroWidthElementLimit(int zeroWidthElementLimit) longsize()toString()type()
-
Constructor Details
-
DataImpl
public DataImpl()
-
-
Method Details
-
free
-
clear
-
size
-
rewind
-
next
-
prev
-
enter
-
exit
-
type
-
encodedSize
public long encodedSize()- Specified by:
encodedSizein interfaceData
-
encode
-
encode
-
decode
-
putList
-
putMap
-
putArray
-
putDescribed
public void putDescribed()- Specified by:
putDescribedin interfaceData
-
putNull
-
putBoolean
public void putBoolean(boolean b) - Specified by:
putBooleanin interfaceData
-
putUnsignedByte
- Specified by:
putUnsignedBytein interfaceData
-
putByte
-
putUnsignedShort
- Specified by:
putUnsignedShortin interfaceData
-
putShort
-
putUnsignedInteger
- Specified by:
putUnsignedIntegerin interfaceData
-
putInt
-
putChar
-
putUnsignedLong
- Specified by:
putUnsignedLongin interfaceData
-
putLong
-
putTimestamp
- Specified by:
putTimestampin interfaceData
-
putFloat
-
putDouble
-
putDecimal32
- Specified by:
putDecimal32in interfaceData
-
putDecimal64
- Specified by:
putDecimal64in interfaceData
-
putDecimal128
- Specified by:
putDecimal128in interfaceData
-
putUUID
-
putBinary
-
putBinary
-
putString
-
putSymbol
-
putObject
-
putJavaMap
- Specified by:
putJavaMapin interfaceData
-
putJavaList
- Specified by:
putJavaListin interfaceData
-
putDescribedType
- Specified by:
putDescribedTypein interfaceData
-
getList
-
getMap
-
getArray
-
isArrayDescribed
public boolean isArrayDescribed()- Specified by:
isArrayDescribedin interfaceData
-
getArrayType
- Specified by:
getArrayTypein interfaceData
-
isDescribed
public boolean isDescribed()- Specified by:
isDescribedin interfaceData
-
isNull
-
getBoolean
public boolean getBoolean()- Specified by:
getBooleanin interfaceData
-
getUnsignedByte
- Specified by:
getUnsignedBytein interfaceData
-
getByte
-
getUnsignedShort
- Specified by:
getUnsignedShortin interfaceData
-
getShort
-
getUnsignedInteger
- Specified by:
getUnsignedIntegerin interfaceData
-
getInt
-
getChar
-
getUnsignedLong
- Specified by:
getUnsignedLongin interfaceData
-
getLong
-
getTimestamp
- Specified by:
getTimestampin interfaceData
-
getFloat
-
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
-
getZeroWidthElementLimit
public int getZeroWidthElementLimit()- Specified by:
getZeroWidthElementLimitin interfaceData
-
setZeroWidthElementLimit
public void setZeroWidthElementLimit(int zeroWidthElementLimit) - Specified by:
setZeroWidthElementLimitin interfaceData
-
getMaxDecodeDepth
public int getMaxDecodeDepth()Returns the maximum decode depth allowed before error when decoding Maps, Lists, Arrays, and certain related DescribedTypes from an encoded payload.- Returns:
- the maximum depth limit before error for Maps, Lists, Arrays and related DescribedTypes.
-
setMaxDecodeDepth
public void setMaxDecodeDepth(int maxDecodeDepth) Configures the maximum decode depth allowed before error when decoding Maps, Lists, Arrays, and certain related DescribedTypes from an encoded payload. Default is 50. It would be unusual to set this to less than 3 due to nesting of types that make up the base protocol itself.
-