public class DecoderImpl extends java.lang.Object implements ByteBufferDecoder
Decoder.ListProcessor<T>
Constructor and Description |
---|
DecoderImpl() |
Modifier and Type | Method and Description |
---|---|
ReadableBuffer |
getBuffer() |
java.nio.ByteBuffer |
getByteBuffer() |
int |
getByteBufferRemaining() |
TypeConstructor<?> |
peekConstructor() |
java.lang.Object[] |
readArray() |
<T> T[] |
readArray(java.lang.Class<T> clazz) |
Binary |
readBinary() |
Binary |
readBinary(Binary defaultValue) |
java.lang.Boolean |
readBoolean() |
boolean |
readBoolean(boolean defaultVal) |
java.lang.Boolean |
readBoolean(java.lang.Boolean defaultVal) |
boolean[] |
readBooleanArray() |
java.lang.Byte |
readByte() |
byte |
readByte(byte defaultVal) |
java.lang.Byte |
readByte(java.lang.Byte defaultVal) |
byte[] |
readByteArray() |
byte[] |
readByteMultiple() |
java.lang.Character |
readCharacter() |
char |
readCharacter(char defaultVal) |
java.lang.Character |
readCharacter(java.lang.Character defaultVal) |
char[] |
readCharacterArray() |
char[] |
readCharacterMultiple() |
TypeConstructor |
readConstructor() |
TypeConstructor |
readConstructor(boolean excludeFastPathConstructors) |
Decimal128 |
readDecimal128() |
Decimal128 |
readDecimal128(Decimal128 defaultValue) |
Decimal32 |
readDecimal32() |
Decimal32 |
readDecimal32(Decimal32 defaultValue) |
Decimal64 |
readDecimal64() |
Decimal64 |
readDecimal64(Decimal64 defaultValue) |
java.lang.Double |
readDouble() |
double |
readDouble(double defaultVal) |
java.lang.Double |
readDouble(java.lang.Double defaultVal) |
double[] |
readDoubleArray() |
double[] |
readDoubleMultiple() |
java.lang.Float |
readFloat() |
float |
readFloat(float defaultVal) |
java.lang.Float |
readFloat(java.lang.Float defaultVal) |
float[] |
readFloatArray() |
float[] |
readFloatMultiple() |
java.lang.Integer |
readInteger() |
int |
readInteger(int defaultVal) |
java.lang.Integer |
readInteger(java.lang.Integer defaultVal) |
int[] |
readIntegerArray() |
int[] |
readIntegerMultiple() |
java.util.List |
readList() |
<T> void |
readList(Decoder.ListProcessor<T> processor) |
java.lang.Long |
readLong() |
long |
readLong(long defaultVal) |
java.lang.Long |
readLong(java.lang.Long defaultVal) |
long[] |
readLongArray() |
long[] |
readLongMultiple() |
java.util.Map |
readMap() |
java.lang.Object[] |
readMultiple() |
<T> T[] |
readMultiple(java.lang.Class<T> clazz) |
java.lang.Object |
readObject() |
java.lang.Object |
readObject(java.lang.Object defaultValue) |
java.lang.Short |
readShort() |
short |
readShort(short defaultVal) |
java.lang.Short |
readShort(java.lang.Short defaultVal) |
short[] |
readShortArray() |
short[] |
readShortMultiple() |
java.lang.String |
readString() |
java.lang.String |
readString(java.lang.String defaultValue) |
Symbol |
readSymbol() |
Symbol |
readSymbol(Symbol defaultValue) |
java.util.Date |
readTimestamp() |
java.util.Date |
readTimestamp(java.util.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) |
java.util.UUID |
readUUID() |
java.util.UUID |
readUUID(java.util.UUID defaultVal) |
void |
register(java.lang.Object descriptor,
DescribedTypeConstructor dtc) |
void |
register(java.lang.Object descriptor,
FastPathDescribedTypeConstructor<?> btc) |
void |
setBuffer(ReadableBuffer buffer) |
void |
setByteBuffer(java.nio.ByteBuffer buffer) |
public TypeConstructor<?> peekConstructor()
public TypeConstructor readConstructor()
public TypeConstructor readConstructor(boolean excludeFastPathConstructors)
public void register(java.lang.Object descriptor, FastPathDescribedTypeConstructor<?> btc)
public void register(java.lang.Object descriptor, DescribedTypeConstructor dtc)
public java.lang.Boolean readBoolean()
readBoolean
in interface Decoder
public java.lang.Boolean readBoolean(java.lang.Boolean defaultVal)
readBoolean
in interface Decoder
public boolean readBoolean(boolean defaultVal)
readBoolean
in interface Decoder
public java.lang.Byte readByte(java.lang.Byte defaultVal)
public java.lang.Short readShort(java.lang.Short defaultVal)
public java.lang.Integer readInteger()
readInteger
in interface Decoder
public java.lang.Integer readInteger(java.lang.Integer defaultVal)
readInteger
in interface Decoder
public int readInteger(int defaultVal)
readInteger
in interface Decoder
public java.lang.Long readLong(java.lang.Long defaultVal)
public UnsignedByte readUnsignedByte()
readUnsignedByte
in interface Decoder
public UnsignedByte readUnsignedByte(UnsignedByte defaultVal)
readUnsignedByte
in interface Decoder
public UnsignedShort readUnsignedShort()
readUnsignedShort
in interface Decoder
public UnsignedShort readUnsignedShort(UnsignedShort defaultVal)
readUnsignedShort
in interface Decoder
public UnsignedInteger readUnsignedInteger()
readUnsignedInteger
in interface Decoder
public UnsignedInteger readUnsignedInteger(UnsignedInteger defaultVal)
readUnsignedInteger
in interface Decoder
public UnsignedLong readUnsignedLong()
readUnsignedLong
in interface Decoder
public UnsignedLong readUnsignedLong(UnsignedLong defaultVal)
readUnsignedLong
in interface Decoder
public java.lang.Character readCharacter()
readCharacter
in interface Decoder
public java.lang.Character readCharacter(java.lang.Character defaultVal)
readCharacter
in interface Decoder
public char readCharacter(char defaultVal)
readCharacter
in interface Decoder
public java.lang.Float readFloat(java.lang.Float defaultVal)
public java.lang.Double readDouble()
readDouble
in interface Decoder
public java.lang.Double readDouble(java.lang.Double defaultVal)
readDouble
in interface Decoder
public double readDouble(double defaultVal)
readDouble
in interface Decoder
public java.util.UUID readUUID(java.util.UUID defaultVal)
public Decimal32 readDecimal32()
readDecimal32
in interface Decoder
public Decimal32 readDecimal32(Decimal32 defaultValue)
readDecimal32
in interface Decoder
public Decimal64 readDecimal64()
readDecimal64
in interface Decoder
public Decimal64 readDecimal64(Decimal64 defaultValue)
readDecimal64
in interface Decoder
public Decimal128 readDecimal128()
readDecimal128
in interface Decoder
public Decimal128 readDecimal128(Decimal128 defaultValue)
readDecimal128
in interface Decoder
public java.util.Date readTimestamp()
readTimestamp
in interface Decoder
public java.util.Date readTimestamp(java.util.Date defaultValue)
readTimestamp
in interface Decoder
public Binary readBinary()
readBinary
in interface Decoder
public Binary readBinary(Binary defaultValue)
readBinary
in interface Decoder
public Symbol readSymbol()
readSymbol
in interface Decoder
public Symbol readSymbol(Symbol defaultValue)
readSymbol
in interface Decoder
public java.lang.String readString()
readString
in interface Decoder
public java.lang.String readString(java.lang.String defaultValue)
readString
in interface Decoder
public <T> void readList(Decoder.ListProcessor<T> processor)
public <T> T[] readArray(java.lang.Class<T> clazz)
public boolean[] readBooleanArray()
readBooleanArray
in interface Decoder
public byte[] readByteArray()
readByteArray
in interface Decoder
public short[] readShortArray()
readShortArray
in interface Decoder
public int[] readIntegerArray()
readIntegerArray
in interface Decoder
public long[] readLongArray()
readLongArray
in interface Decoder
public float[] readFloatArray()
readFloatArray
in interface Decoder
public double[] readDoubleArray()
readDoubleArray
in interface Decoder
public char[] readCharacterArray()
readCharacterArray
in interface Decoder
public <T> T[] readMultiple(java.lang.Class<T> clazz)
readMultiple
in interface Decoder
public java.lang.Object[] readMultiple()
readMultiple
in interface Decoder
public byte[] readByteMultiple()
readByteMultiple
in interface Decoder
public short[] readShortMultiple()
readShortMultiple
in interface Decoder
public int[] readIntegerMultiple()
readIntegerMultiple
in interface Decoder
public long[] readLongMultiple()
readLongMultiple
in interface Decoder
public float[] readFloatMultiple()
readFloatMultiple
in interface Decoder
public double[] readDoubleMultiple()
readDoubleMultiple
in interface Decoder
public char[] readCharacterMultiple()
readCharacterMultiple
in interface Decoder
public java.lang.Object readObject()
readObject
in interface Decoder
public java.lang.Object readObject(java.lang.Object defaultValue)
readObject
in interface Decoder
public void setByteBuffer(java.nio.ByteBuffer buffer)
setByteBuffer
in interface ByteBufferDecoder
public java.nio.ByteBuffer getByteBuffer()
public void setBuffer(ReadableBuffer buffer)
public ReadableBuffer getBuffer()
public int getByteBufferRemaining()
getByteBufferRemaining
in interface ByteBufferDecoder