Interface IObjectSerialDeserial<T>
-
public interface IObjectSerialDeserial<T>
General interface to implement object serializers/deserializers.- Author:
- andrea del bene
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <E> E
deserializeObject(T source, Class<E> targetClass, String mimeType)
Extract an object instance from a given source object.T
serializeObject(Object target, String mimeType)
Returns a given representation of the target object.
-
-
-
Method Detail
-
serializeObject
T serializeObject(Object target, String mimeType)
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
<E> E deserializeObject(T source, Class<E> targetClass, String mimeType)
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.
-
-