Interface Decoder
- All Known Subinterfaces:
ByteBufferDecoder
- All Known Implementing Classes:
DecoderImpl
public interface Decoder
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionintReturns the maximum decode depth allowed before error when decoding Maps, Lists, Arrays, and certain related DescribedTypes from an encoded payload.intReturns 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[]<T> T[]readBinary(Binary defaultValue) booleanreadBoolean(boolean defaultVal) readBoolean(Boolean defaultVal) boolean[]readByte()bytereadByte(byte defaultVal) byte[]byte[]charreadCharacter(char defaultVal) readCharacter(Character defaultVal) char[]char[]readDecimal128(Decimal128 defaultValue) readDecimal32(Decimal32 defaultValue) readDecimal64(Decimal64 defaultValue) doublereadDouble(double defaultVal) readDouble(Double defaultVal) double[]double[]floatreadFloat(float defaultVal) float[]float[]intreadInteger(int defaultVal) readInteger(Integer defaultVal) int[]int[]readList()<T> voidreadList(Decoder.ListProcessor<T> processor) readLong()longreadLong(long defaultVal) long[]long[]readMap()Object[]<T> T[]readMultiple(Class<T> clazz) readObject(Object defaultValue) shortreadShort(short defaultVal) short[]short[]readString(String defaultValue) readSymbol(Symbol defaultValue) readTimestamp(Date defaultValue) readUnsignedByte(UnsignedByte defaultVal) readUnsignedInteger(UnsignedInteger defaultVal) readUnsignedLong(UnsignedLong defaultVal) readUnsignedShort(UnsignedShort defaultVal) readUUID()voidregister(Object descriptor, DescribedTypeConstructor dtc) voidregister(Object descriptor, FastPathDescribedTypeConstructor<?> dtc) voidsetMaxDecodeDepth(int maxDecodeDepth) Configures the maximum decode depth allowed before error when decoding Maps, Lists, Arrays, and certain related DescribedTypes from an encoded payload.voidsetZeroWidthArrayElementLimit(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.
-
Method Details
-
readBoolean
Boolean readBoolean() -
readBoolean
-
readBoolean
boolean readBoolean(boolean defaultVal) -
readByte
Byte readByte() -
readByte
-
readByte
byte readByte(byte defaultVal) -
readShort
Short readShort() -
readShort
-
readShort
short readShort(short defaultVal) -
readInteger
Integer readInteger() -
readInteger
-
readInteger
int readInteger(int defaultVal) -
readLong
Long readLong() -
readLong
-
readLong
long readLong(long defaultVal) -
readUnsignedByte
UnsignedByte readUnsignedByte() -
readUnsignedByte
-
readUnsignedShort
UnsignedShort readUnsignedShort() -
readUnsignedShort
-
readUnsignedInteger
UnsignedInteger readUnsignedInteger() -
readUnsignedInteger
-
readUnsignedLong
UnsignedLong readUnsignedLong() -
readUnsignedLong
-
readCharacter
Character readCharacter() -
readCharacter
-
readCharacter
char readCharacter(char defaultVal) -
readFloat
Float readFloat() -
readFloat
-
readFloat
float readFloat(float defaultVal) -
readDouble
Double readDouble() -
readDouble
-
readDouble
double readDouble(double defaultVal) -
readUUID
UUID readUUID() -
readUUID
-
readDecimal32
Decimal32 readDecimal32() -
readDecimal32
-
readDecimal64
Decimal64 readDecimal64() -
readDecimal64
-
readDecimal128
Decimal128 readDecimal128() -
readDecimal128
-
readTimestamp
Date readTimestamp() -
readTimestamp
-
readBinary
Binary readBinary() -
readBinary
-
readSymbol
Symbol readSymbol() -
readSymbol
-
readString
String readString() -
readString
-
readList
List readList() -
readList
-
readMap
Map readMap() -
readArray
-
readArray
Object[] readArray() -
readBooleanArray
boolean[] readBooleanArray() -
readByteArray
byte[] readByteArray() -
readShortArray
short[] readShortArray() -
readIntegerArray
int[] readIntegerArray() -
readLongArray
long[] readLongArray() -
readFloatArray
float[] readFloatArray() -
readDoubleArray
double[] readDoubleArray() -
readCharacterArray
char[] readCharacterArray() -
readMultiple
-
readMultiple
Object[] readMultiple() -
readByteMultiple
byte[] readByteMultiple() -
readShortMultiple
short[] readShortMultiple() -
readIntegerMultiple
int[] readIntegerMultiple() -
readLongMultiple
long[] readLongMultiple() -
readFloatMultiple
float[] readFloatMultiple() -
readDoubleMultiple
double[] readDoubleMultiple() -
readCharacterMultiple
char[] readCharacterMultiple() -
readObject
Object readObject() -
readObject
-
getZeroWidthArrayElementLimit
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.- Returns:
- the maximum number of zero-width elements allowed in an array.
-
setZeroWidthArrayElementLimit
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. Default is 0, meaning only the empty array is permitted. -
getMaxDecodeDepth
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
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. -
register
-
register
-