public abstract class JsonDeserializer<T> extends Object
| Constructor and Description |
|---|
JsonDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(JsonReader reader,
JsonDeserializationContext ctx)
Deserializes a JSON input into an object.
|
protected abstract T |
doDeserialize(JsonReader reader,
JsonDeserializationContext ctx)
Deserializes a non-null JSON input into an object.
|
void |
setBackReference(String referenceName,
Object reference,
T value,
JsonDeserializationContext ctx)
Set the back reference.
|
public T deserialize(JsonReader reader, JsonDeserializationContext ctx) throws JsonDeserializationException
reader - JsonReader used to read the JSON inputctx - Context for the full deserialization processJsonDeserializationException - if an error occurs during the deserializationprotected abstract T doDeserialize(JsonReader reader, JsonDeserializationContext ctx) throws IOException
reader - JsonReader used to read the JSON inputctx - Context for the full deserialization processIOException - if an error occurs reading the inputpublic void setBackReference(String referenceName, Object reference, T value, JsonDeserializationContext ctx)
referenceName - name of the referencereference - reference to setvalue - value to set the reference to.ctx - Context for the full deserialization processJsonBackReferenceCopyright © 2013. All Rights Reserved.