public class BinaryValueDeserializer extends AbstractValueDeserializer implements IValueDeserializer
| Modifier | Constructor and Description |
|---|---|
protected |
BinaryValueDeserializer(java.nio.ByteBuffer buffer,
ReaderRegistry<java.lang.String> stringRegistry)
Create a binary value deserializer.
|
| Modifier and Type | Method and Description |
|---|---|
static BinaryValueDeserializer |
create(java.nio.ByteBuffer buffer,
ReaderRegistry<java.lang.String> stringRegistry)
Factory method to create a binary value deserializer.
|
boolean |
getBoolean()
Retrieves a
boolean value from the underlying data source. |
byte |
getByte()
Retrieves a
byte value from the underlying data source. |
char |
getChar()
Retrieves a
char value from the underlying data source. |
double |
getDouble()
Retrieves a
double value from the underlying data source. |
<T extends java.lang.Enum<T>> |
getEnumeration(java.lang.Class<T> clazz)
Retrieves a
Enumeration value from the underlying data source. |
float |
getFloat()
Retrieves a
float value from the underlying data source. |
int |
getInt()
Retrieves an
int value from the underlying data source. |
long |
getLong()
Retrieves a
long value from the underlying data source. |
short |
getShort()
Retrieves a
short value from the underlying data source. |
java.lang.String |
getString()
Retrieves a
String value from the underlying data source. |
enumerationValueOfprotected BinaryValueDeserializer(java.nio.ByteBuffer buffer,
ReaderRegistry<java.lang.String> stringRegistry)
buffer - buffer for the deserializerstringRegistry - the string registry used for the deserializerpublic static BinaryValueDeserializer create(java.nio.ByteBuffer buffer, ReaderRegistry<java.lang.String> stringRegistry)
buffer - serialization bufferstringRegistry - the string registry used for the deserializerpublic boolean getBoolean()
IValueDeserializerboolean value from the underlying data source.getBoolean in interface IValueDeserializerpublic byte getByte()
IValueDeserializerbyte value from the underlying data source.getByte in interface IValueDeserializerpublic int getInt()
IValueDeserializerint value from the underlying data source.getInt in interface IValueDeserializerpublic long getLong()
IValueDeserializerlong value from the underlying data source.getLong in interface IValueDeserializerpublic double getDouble()
IValueDeserializerdouble value from the underlying data source.getDouble in interface IValueDeserializerpublic java.lang.String getString()
IValueDeserializerString value from the underlying data source.getString in interface IValueDeserializerpublic <T extends java.lang.Enum<T>> T getEnumeration(java.lang.Class<T> clazz)
throws RecordInstantiationException
IValueDeserializerEnumeration value from the underlying data source.getEnumeration in interface IValueDeserializerT - the corresponding enumeration typeclazz - enumeration type to be usedRecordInstantiationException - in case the received ordinal does not exist in the specified enumeration typepublic char getChar()
IValueDeserializerchar value from the underlying data source.getChar in interface IValueDeserializerpublic short getShort()
IValueDeserializershort value from the underlying data source.getShort in interface IValueDeserializerpublic float getFloat()
IValueDeserializerfloat value from the underlying data source.getFloat in interface IValueDeserializerCopyright 2020 Kieker Project, http://kieker-monitoring.net