Class ConvertedValuesSerializer
java.lang.Object
com.e1c.langtool.internal.converter.db.ConvertedValuesSerializer
- All Implemented Interfaces:
Serializable,org.mapdb.Serializer<ConvertedValues>
public class ConvertedValuesSerializer
extends Object
implements org.mapdb.Serializer<ConvertedValues>, Serializable
Serializer implementation for converting
ConvertedValues objects to and from bytes.
This serializer is used by MapDB to store and retrieve ConvertedValues objects.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mapdb.Serializer
org.mapdb.Serializer.CompressionWrapper<E extends Object> -
Field Summary
Fields inherited from interface org.mapdb.Serializer
BASIC, BOOLEAN, BYTE_ARRAY, BYTE_ARRAY_NOSIZE, CHAR_ARRAY, DOUBLE_ARRAY, ILLEGAL_ACCESS, INT_ARRAY, INTEGER, JAVA, LONG, LONG_ARRAY, STRING, STRING_ASCII, STRING_INTERN, STRING_NOSIZE, UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(DataInput in, int available) Deserialize aConvertedValuesobject from bytes.intGet the fixed size of the serialized data.voidserialize(DataOutput out, ConvertedValues data) Serialize aConvertedValuesobject to bytes.
-
Constructor Details
-
ConvertedValuesSerializer
public ConvertedValuesSerializer()
-
-
Method Details
-
deserialize
Deserialize aConvertedValuesobject from bytes.- Specified by:
deserializein interfaceorg.mapdb.Serializer<ConvertedValues>- Parameters:
in- the input stream from which to read the serialized data.available- the number of bytes available to read.- Returns:
- the deserialized
ConvertedValuesobject. - Throws:
IOException- if an I/O error occurs while reading the data.
-
serialize
Serialize aConvertedValuesobject to bytes.- Specified by:
serializein interfaceorg.mapdb.Serializer<ConvertedValues>- Parameters:
out- the output stream to which to write the serialized data.data- theConvertedValuesobject to serialize.- Throws:
IOException- if an I/O error occurs while writing the data.
-
fixedSize
public int fixedSize()Get the fixed size of the serialized data.- Specified by:
fixedSizein interfaceorg.mapdb.Serializer<ConvertedValues>- Returns:
- the fixed size of the serialized data, or -1 if the size is variable.
-