public interface Decoder
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Decoder.ListProcessor<T> |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxDecodeDepth()
Returns the maximum decode depth allowed before error when decoding Maps, Lists,
Arrays, and certain related DescribedTypes from an encoded payload.
|
int |
getZeroWidthArrayElementLimit()
Returns the maximum number of array elements allowed while decoding arrays of zero-width
elements (ulong0, uint0, list0, boolean-true, boolean-false, null) before a decode exception.
|
Object[] |
readArray() |
<T> T[] |
readArray(Class<T> clazz) |
Binary |
readBinary() |
Binary |
readBinary(Binary defaultValue) |
Boolean |
readBoolean() |
boolean |
readBoolean(boolean defaultVal) |
Boolean |
readBoolean(Boolean defaultVal) |
boolean[] |
readBooleanArray() |
Byte |
readByte() |
byte |
readByte(byte defaultVal) |
Byte |
readByte(Byte defaultVal) |
byte[] |
readByteArray() |
byte[] |
readByteMultiple() |
Character |
readCharacter() |
char |
readCharacter(char defaultVal) |
Character |
readCharacter(Character defaultVal) |
char[] |
readCharacterArray() |
char[] |
readCharacterMultiple() |
Decimal128 |
readDecimal128() |
Decimal128 |
readDecimal128(Decimal128 defaultValue) |
Decimal32 |
readDecimal32() |
Decimal32 |
readDecimal32(Decimal32 defaultValue) |
Decimal64 |
readDecimal64() |
Decimal64 |
readDecimal64(Decimal64 defaultValue) |
Double |
readDouble() |
double |
readDouble(double defaultVal) |
Double |
readDouble(Double defaultVal) |
double[] |
readDoubleArray() |
double[] |
readDoubleMultiple() |
Float |
readFloat() |
float |
readFloat(float defaultVal) |
Float |
readFloat(Float defaultVal) |
float[] |
readFloatArray() |
float[] |
readFloatMultiple() |
Integer |
readInteger() |
int |
readInteger(int defaultVal) |
Integer |
readInteger(Integer defaultVal) |
int[] |
readIntegerArray() |
int[] |
readIntegerMultiple() |
List |
readList() |
<T> void |
readList(Decoder.ListProcessor<T> processor) |
Long |
readLong() |
long |
readLong(long defaultVal) |
Long |
readLong(Long defaultVal) |
long[] |
readLongArray() |
long[] |
readLongMultiple() |
Map |
readMap() |
Object[] |
readMultiple() |
<T> T[] |
readMultiple(Class<T> clazz) |
Object |
readObject() |
Object |
readObject(Object defaultValue) |
Short |
readShort() |
short |
readShort(short defaultVal) |
Short |
readShort(Short defaultVal) |
short[] |
readShortArray() |
short[] |
readShortMultiple() |
String |
readString() |
String |
readString(String defaultValue) |
Symbol |
readSymbol() |
Symbol |
readSymbol(Symbol defaultValue) |
Date |
readTimestamp() |
Date |
readTimestamp(Date defaultValue) |
UnsignedByte |
readUnsignedByte() |
UnsignedByte |
readUnsignedByte(UnsignedByte defaultVal) |
UnsignedInteger |
readUnsignedInteger() |
UnsignedInteger |
readUnsignedInteger(UnsignedInteger defaultVal) |
UnsignedLong |
readUnsignedLong() |
UnsignedLong |
readUnsignedLong(UnsignedLong defaultVal) |
UnsignedShort |
readUnsignedShort() |
UnsignedShort |
readUnsignedShort(UnsignedShort defaultVal) |
UUID |
readUUID() |
UUID |
readUUID(UUID defaultValue) |
void |
register(Object descriptor,
DescribedTypeConstructor dtc) |
void |
register(Object descriptor,
FastPathDescribedTypeConstructor<?> dtc) |
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.
|
void |
setZeroWidthArrayElementLimit(int zeroWidthElementLimit)
Configures the maximum number of array elements allowed while decoding arrays of zero-width
elements (ulong0, uint0, list0, boolean-true, boolean-false, null) before a decode exception.
|
Boolean readBoolean()
boolean readBoolean(boolean defaultVal)
Byte readByte()
byte readByte(byte defaultVal)
Short readShort()
short readShort(short defaultVal)
Integer readInteger()
int readInteger(int defaultVal)
Long readLong()
long readLong(long defaultVal)
UnsignedByte readUnsignedByte()
UnsignedByte readUnsignedByte(UnsignedByte defaultVal)
UnsignedShort readUnsignedShort()
UnsignedShort readUnsignedShort(UnsignedShort defaultVal)
UnsignedInteger readUnsignedInteger()
UnsignedInteger readUnsignedInteger(UnsignedInteger defaultVal)
UnsignedLong readUnsignedLong()
UnsignedLong readUnsignedLong(UnsignedLong defaultVal)
Character readCharacter()
char readCharacter(char defaultVal)
Float readFloat()
float readFloat(float defaultVal)
Double readDouble()
double readDouble(double defaultVal)
UUID readUUID()
Decimal32 readDecimal32()
Decimal64 readDecimal64()
Decimal128 readDecimal128()
Decimal128 readDecimal128(Decimal128 defaultValue)
Date readTimestamp()
Binary readBinary()
Symbol readSymbol()
String readString()
List readList()
<T> void readList(Decoder.ListProcessor<T> processor)
Map readMap()
<T> T[] readArray(Class<T> clazz)
Object[] readArray()
boolean[] readBooleanArray()
byte[] readByteArray()
short[] readShortArray()
int[] readIntegerArray()
long[] readLongArray()
float[] readFloatArray()
double[] readDoubleArray()
char[] readCharacterArray()
<T> T[] readMultiple(Class<T> clazz)
Object[] readMultiple()
byte[] readByteMultiple()
short[] readShortMultiple()
int[] readIntegerMultiple()
long[] readLongMultiple()
float[] readFloatMultiple()
double[] readDoubleMultiple()
char[] readCharacterMultiple()
Object readObject()
int getZeroWidthArrayElementLimit()
void setZeroWidthArrayElementLimit(int zeroWidthElementLimit)
int getMaxDecodeDepth()
void setMaxDecodeDepth(int maxDecodeDepth)
void register(Object descriptor, DescribedTypeConstructor dtc)
void register(Object descriptor, FastPathDescribedTypeConstructor<?> dtc)
Copyright © 2026 The Apache Software Foundation. All rights reserved.