public class BinaryValueSerializer extends java.lang.Object implements IValueSerializer
| Modifier | Constructor and Description |
|---|---|
protected |
BinaryValueSerializer(java.nio.ByteBuffer buffer,
IWriterRegistry<java.lang.String> stringRegistry)
Create a binary value serializer.
|
| Modifier and Type | Method and Description |
|---|---|
static BinaryValueSerializer |
create(java.nio.ByteBuffer buffer,
IWriterRegistry<java.lang.String> stringRegistry)
Factory method to create a binary value serializer.
|
void |
putBoolean(boolean value)
Stores a
boolean value in the underlying data store. |
void |
putByte(byte value)
Stores a
byte value in the underlying data store. |
void |
putBytes(byte[] value)
Stores raw data in the underlying data store.
|
void |
putChar(char value)
Stores a
char value in the underlying data store. |
void |
putDouble(double value)
Stores a
double value in the underlying data store. |
<T extends java.lang.Enum<T>> |
putEnumeration(T value)
Stores a
Enumeration value in the underlying data store. |
void |
putFloat(float value)
Stores a
float value in the underlying data store. |
void |
putInt(int value)
Stores an
int value in the underlying data store. |
void |
putLong(long value)
Stores a
long value in the underlying data store. |
void |
putShort(short value)
Stores a
short value in the underlying data store. |
void |
putString(java.lang.String value)
Stores a
String value in the underlying data store. |
protected BinaryValueSerializer(java.nio.ByteBuffer buffer,
IWriterRegistry<java.lang.String> stringRegistry)
buffer - buffer for the serializerstringRegistry - the string registry used for the serializerpublic static BinaryValueSerializer create(java.nio.ByteBuffer buffer, IWriterRegistry<java.lang.String> stringRegistry)
buffer - serialization bufferstringRegistry - the string registry used for the serializerpublic void putBoolean(boolean value)
IValueSerializerboolean value in the underlying data store.putBoolean in interface IValueSerializervalue - The value to storepublic void putByte(byte value)
IValueSerializerbyte value in the underlying data store.putByte in interface IValueSerializervalue - The value to storepublic void putInt(int value)
IValueSerializerint value in the underlying data store.putInt in interface IValueSerializervalue - The value to storepublic void putLong(long value)
IValueSerializerlong value in the underlying data store.putLong in interface IValueSerializervalue - The value to storepublic void putDouble(double value)
IValueSerializerdouble value in the underlying data store.putDouble in interface IValueSerializervalue - The value to storepublic void putBytes(byte[] value)
IValueSerializerputBytes in interface IValueSerializervalue - The data to storepublic void putString(java.lang.String value)
IValueSerializerString value in the underlying data store.putString in interface IValueSerializervalue - The value to storepublic void putChar(char value)
IValueSerializerchar value in the underlying data store.putChar in interface IValueSerializervalue - The value to storepublic void putShort(short value)
IValueSerializershort value in the underlying data store.putShort in interface IValueSerializervalue - The value to storepublic void putFloat(float value)
IValueSerializerfloat value in the underlying data store.putFloat in interface IValueSerializervalue - The value to storepublic <T extends java.lang.Enum<T>> void putEnumeration(T value)
IValueSerializerEnumeration value in the underlying data store.putEnumeration in interface IValueSerializerT - enumeration typevalue - The value to storeCopyright 2020 Kieker Project, http://kieker-monitoring.net