Interface IObjectSerialDeserial<T>
public interface IObjectSerialDeserial<T>
General interface to implement object serializers/deserializers.
- Author:
- andrea del bene
-
Method Summary
Modifier and TypeMethodDescription<E> E
deserializeObject
(T source, Class<E> targetClass, String mimeType) Extract an object instance from a given source object.serializeObject
(Object target, String mimeType) Returns a given representation of the target object.
-
Method Details
-
serializeObject
Returns a given representation of the target object.- Parameters:
target
- the object to convert to the given format.mimeType
- the target MIME type.- Returns:
- the representation of the object.
-
deserializeObject
Extract an object instance from a given source object.- Parameters:
source
- the source object of type. targetClass
- the type of the returned object.mimeType
- the target MIME type.- Returns:
- the extracted object.
-