public interface Serializer
Lists of SynchronizeFX Commands.
For a list with classes that this serializer must be able to serialize and deserializer see
CommandTransferClient.| Modifier and Type | Method and Description |
|---|---|
List<Command> |
deserialize(byte[] commands)
Deserializes a byte array to objects that was created with
serialize(List). |
byte[] |
serialize(List<Command> objects)
Serializes a list with commands to byte arrays.
|
byte[] serialize(List<Command> objects) throws SynchronizeFXException
objects - The commands that should be serialized.SynchronizeFXException - When the serialisation failed. When this exception is thrown, the
serializer must still be able to serialize valid objects.List<Command> deserialize(byte[] commands) throws SynchronizeFXException
serialize(List).
This method must be implemented thread safe.commands - The byte array that contains the serialized commands.SynchronizeFXException - When the deserialisation failed. When this exception is thrown, the serializer must still be able to
deserialize valid objects.Copyright © 2015 Saxonia Systems AG. All Rights Reserved.