SerializerStrategy

SerializerStrategy is an interface that defines the methods for serializing and deserializing data.

It provides two main methods:

  • serialize: Takes an OutputStream and SerializerData, and writes the serialized data to the stream.

  • deserialize: Takes an InputStream and reads the serialized data from the stream, returning a SerializerData object.

The default implementation of this interface is provided by ByteSerializerStrategy.

Since

1.0-SNAPSHOT

Author

Fantamomo

See also

Inheritors

Types

Link copied to clipboard

The default implementation of the SerializerStrategy interface.

Functions

Link copied to clipboard
abstract fun deserialize(input: InputStream): SerializerData

Deserializes data from the provided input stream into a SerializerData object.

Link copied to clipboard
abstract fun serialize(output: OutputStream, data: SerializerData)

Serializes the given data into the provided output stream.