|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.plugins.s11n.json.ResSerializer<T>
ccc.plugins.s11n.json.ResourceSerializer<T>
public abstract class ResourceSerializer<T extends Resource>
Serializer for Resource
s.
Constructor Summary | |
---|---|
ResourceSerializer()
|
Method Summary | |
---|---|
T |
read(Json json)
Deserialize from a representation. |
Json |
write(Json json,
T instance)
Serialize to representation. |
Methods inherited from class ccc.plugins.s11n.json.ResSerializer |
---|
createObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceSerializer()
Method Detail |
---|
public T read(Json json)
read
in interface Serializer<T extends Resource>
read
in class ResSerializer<T extends Resource>
json
- The wire representation.
public Json write(Json json, T instance)
write
in interface Serializer<T extends Resource>
write
in class ResSerializer<T extends Resource>
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 |