public interface Serializer
Lists with Java objects to byte arrays.
For a list with classes that this serializer must be able to serialize and deserializer see
MessageTransferClient.| Modifier and Type | Method and Description |
|---|---|
List<Object> |
deserialize(byte[] message)
Deserializes a byte array to objects that was created with
serialize(List). |
byte[] |
serialize(List<Object> objects)
Serializes a list with messages to byte arrays.
|
byte[] serialize(List<Object> objects) throws SynchronizeFXException
objects - The messages 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<Object> deserialize(byte[] message) throws SynchronizeFXException
serialize(List).
This method must be implemented thread safe.message - The byte array that contains the serialized messages.SynchronizeFXException - When the deserialisation failed. When this exception is thrown, the
serializer must still be able to deserialize valid objects.Copyright © 2014 Saxonia Systems AG. All Rights Reserved.