|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.plugins.s11n.json.AbstractSerializer<T>
T
- The type of object to serialize.public abstract class AbstractSerializer<T>
Base class for serializers.
Constructor Summary | |
---|---|
AbstractSerializer()
|
Method Summary | |
---|---|
protected abstract T |
createObject()
Create a new instance of type T. |
T |
read(Json json)
Deserialize from a representation. |
Json |
write(Json json,
T instance)
Serialize to representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractSerializer()
Method Detail |
---|
public T read(Json json)
read
in interface Serializer<T>
json
- The wire representation.
protected abstract T createObject()
public Json write(Json json, T instance)
write
in interface Serializer<T>
json
- The wire representation.instance
- The object to serialize.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |