T - the serialization format type so that the converter converts between T and Representationpublic abstract class Converter<T>
extends java.lang.Object
Representation objects and some serialization format.| Constructor and Description |
|---|
Converter() |
| Modifier and Type | Method and Description |
|---|---|
abstract Representation |
deserialize(T s)
Deserializes the given object to its representation.
|
abstract T |
serialize(Representation r)
Serializes the given representation to the type supported by this converter.
|
public abstract T serialize(Representation r)
r - the representation to serializepublic abstract Representation deserialize(T s)
s - the object to deserialize