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:
  • Constructor Details

    • ConvertedValuesSerializer

      public ConvertedValuesSerializer()
  • Method Details

    • deserialize

      public ConvertedValues deserialize(DataInput in, int available) throws IOException
      Deserialize a ConvertedValues object from bytes.
      Specified by:
      deserialize in interface org.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 ConvertedValues object.
      Throws:
      IOException - if an I/O error occurs while reading the data.
    • serialize

      public void serialize(DataOutput out, ConvertedValues data) throws IOException
      Serialize a ConvertedValues object to bytes.
      Specified by:
      serialize in interface org.mapdb.Serializer<ConvertedValues>
      Parameters:
      out - the output stream to which to write the serialized data.
      data - the ConvertedValues object 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:
      fixedSize in interface org.mapdb.Serializer<ConvertedValues>
      Returns:
      the fixed size of the serialized data, or -1 if the size is variable.