Interface Serializer<T>
- Type Parameters:
T- the type to be serialized
- All Superinterfaces:
InputTypeTranslator<byte[],,T> OutputTypeTranslator<T,,byte[]> TypeTranslator<T,byte[]>
- All Known Implementing Classes:
AlertSerializer,ByteArraySerializer,GenericJsonSerializer,StatusMessageSerializer,StringSerializer,TraceRecordSerializer
A data serializer (so far for homogeneous streams, may require unique ids). Open: Do we have to cope with
null values here?
- Author:
- Holger Eichelberger, SSE
-
Method Summary
Methods inherited from interface de.iip_ecosphere.platform.transport.serialization.InputTypeTranslator
fromMethods inherited from interface de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator
to
-
Method Details
-
clone
Creates a new value instance and copies the values fromoriginto the new instance. Use theSerializerRegistryto implement cloning of nested object values.- Parameters:
origin- the object to clone- Returns:
- the cloned object
- Throws:
IOException- in case that cloning/serialization operations fail
-
getType
The type to be handled by this serializer.- Returns:
- the type
-