Package kieker.common.record.io
Class TextValueSerializer
java.lang.Object
kieker.common.record.io.TextValueSerializer
- All Implemented Interfaces:
IValueSerializer
public class TextValueSerializer extends java.lang.Object implements IValueSerializer
Text value serializer implementation.
- Since:
- 1.13
- Author:
- Reiner Jung
-
Constructor Summary
Constructors Modifier Constructor Description protectedTextValueSerializer(java.nio.CharBuffer buffer)Create a text value serializer. -
Method Summary
Modifier and Type Method Description static TextValueSerializercreate(java.nio.CharBuffer buffer)Factory method to create a text value serializer.voidputBoolean(boolean value)Stores abooleanvalue in the underlying data store.voidputByte(byte value)Stores abytevalue in the underlying data store.voidputBytes(byte[] value)Stores raw data in the underlying data store.voidputChar(char value)Stores acharvalue in the underlying data store.voidputDouble(double value)Stores adoublevalue in the underlying data store.<T extends java.lang.Enum<T>>
voidputEnumeration(T value)Stores aEnumerationvalue in the underlying data store.voidputFloat(float value)Stores afloatvalue in the underlying data store.voidputInt(int value)Stores anintvalue in the underlying data store.voidputLong(long value)Stores alongvalue in the underlying data store.voidputShort(short value)Stores ashortvalue in the underlying data store.voidputString(java.lang.String value)Stores aStringvalue in the underlying data store.
-
Constructor Details
-
TextValueSerializer
protected TextValueSerializer(java.nio.CharBuffer buffer)Create a text value serializer.- Parameters:
buffer- buffer for the serializer
-
-
Method Details
-
create
Factory method to create a text value serializer.- Parameters:
buffer- serialization buffer- Returns:
- the value serializer
-
putBoolean
public void putBoolean(boolean value)Description copied from interface:IValueSerializerStores abooleanvalue in the underlying data store.- Specified by:
putBooleanin interfaceIValueSerializer- Parameters:
value- The value to store
-
putByte
public void putByte(byte value)Description copied from interface:IValueSerializerStores abytevalue in the underlying data store.- Specified by:
putBytein interfaceIValueSerializer- Parameters:
value- The value to store
-
putChar
public void putChar(char value)Description copied from interface:IValueSerializerStores acharvalue in the underlying data store.- Specified by:
putCharin interfaceIValueSerializer- Parameters:
value- The value to store
-
putShort
public void putShort(short value)Description copied from interface:IValueSerializerStores ashortvalue in the underlying data store.- Specified by:
putShortin interfaceIValueSerializer- Parameters:
value- The value to store
-
putInt
public void putInt(int value)Description copied from interface:IValueSerializerStores anintvalue in the underlying data store.- Specified by:
putIntin interfaceIValueSerializer- Parameters:
value- The value to store
-
putLong
public void putLong(long value)Description copied from interface:IValueSerializerStores alongvalue in the underlying data store.- Specified by:
putLongin interfaceIValueSerializer- Parameters:
value- The value to store
-
putFloat
public void putFloat(float value)Description copied from interface:IValueSerializerStores afloatvalue in the underlying data store.- Specified by:
putFloatin interfaceIValueSerializer- Parameters:
value- The value to store
-
putDouble
public void putDouble(double value)Description copied from interface:IValueSerializerStores adoublevalue in the underlying data store.- Specified by:
putDoublein interfaceIValueSerializer- Parameters:
value- The value to store
-
putBytes
public void putBytes(byte[] value)Description copied from interface:IValueSerializerStores raw data in the underlying data store.- Specified by:
putBytesin interfaceIValueSerializer- Parameters:
value- The data to store
-
putString
public void putString(java.lang.String value)Description copied from interface:IValueSerializerStores aStringvalue in the underlying data store.- Specified by:
putStringin interfaceIValueSerializer- Parameters:
value- The value to store
-
putEnumeration
public <T extends java.lang.Enum<T>> void putEnumeration(T value)Description copied from interface:IValueSerializerStores aEnumerationvalue in the underlying data store.- Specified by:
putEnumerationin interfaceIValueSerializer- Type Parameters:
T- enumeration type- Parameters:
value- The value to store
-