S - The expected source typeT - The output typepublic interface ContentTypeConverter<S,T>
byte[] or
InputStream), or may produce a different data type than they consume.| Modifier and Type | Method and Description |
|---|---|
T |
convert(S original)
Converts the given object into another.
|
SerializedObject<T> |
convert(SerializedObject<S> original)
Converts the data format of the given
original IntermediateRepresentation to the target data type. |
Class<S> |
expectedSourceType()
The expected type of input data.
|
Class<T> |
targetType()
The returned type of IntermediateRepresentation
|
Class<S> expectedSourceType()
Class<T> targetType()
SerializedObject<T> convert(SerializedObject<S> original)
original IntermediateRepresentation to the target data type.original - The source to convertT convert(S original)
SerializedObject
instance.original - the value to convertCopyright © 2010-2014. All Rights Reserved.