public class TextValueDeserializer extends AbstractValueDeserializer implements IValueDeserializer
| Modifier | Constructor and Description |
|---|---|
protected |
TextValueDeserializer(java.nio.CharBuffer buffer)
Create a text value deserializer.
|
| Modifier and Type | Method and Description |
|---|---|
static TextValueDeserializer |
create(java.nio.CharBuffer buffer)
Factory method to create a text 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 TextValueDeserializer(java.nio.CharBuffer buffer)
buffer - buffer for the deserializerpublic static TextValueDeserializer create(java.nio.CharBuffer buffer)
buffer - serialization bufferpublic boolean getBoolean()
IValueDeserializerboolean value from the underlying data source.getBoolean in interface IValueDeserializerpublic byte getByte()
throws java.lang.NumberFormatException
IValueDeserializerbyte value from the underlying data source.getByte in interface IValueDeserializerjava.lang.NumberFormatException - on format errorspublic char getChar()
IValueDeserializerchar value from the underlying data source.getChar in interface IValueDeserializerpublic short getShort()
throws java.lang.NumberFormatException
IValueDeserializershort value from the underlying data source.getShort in interface IValueDeserializerjava.lang.NumberFormatException - on format errorspublic int getInt()
throws java.lang.NumberFormatException
IValueDeserializerint value from the underlying data source.getInt in interface IValueDeserializerjava.lang.NumberFormatException - on format errorspublic long getLong()
throws java.lang.NumberFormatException
IValueDeserializerlong value from the underlying data source.getLong in interface IValueDeserializerjava.lang.NumberFormatException - on format errorspublic float getFloat()
throws java.lang.NumberFormatException
IValueDeserializerfloat value from the underlying data source.getFloat in interface IValueDeserializerjava.lang.NumberFormatException - on format errorspublic double getDouble()
throws java.lang.NumberFormatException
IValueDeserializerdouble value from the underlying data source.getDouble in interface IValueDeserializerjava.lang.NumberFormatException - on format errorspublic 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 typeCopyright 2020 Kieker Project, http://kieker-monitoring.net