public abstract class AbstractArrayJsonDeserializer<T> extends JsonDeserializer<T>
JsonDeserializer for array.| Constructor and Description |
|---|
AbstractArrayJsonDeserializer() |
| Modifier and Type | Method and Description |
|---|---|
protected <C> List<C> |
deserializeIntoList(JsonReader reader,
JsonDeserializationContext ctx,
JsonDeserializer<C> deserializer)
Deserializes the array into a
List. |
T |
doDeserialize(JsonReader reader,
JsonDeserializationContext ctx)
Deserializes a non-null JSON input into an object.
|
protected abstract T |
doDeserializeArray(JsonReader reader,
JsonDeserializationContext ctx) |
protected T |
doDeserializeNonArray(JsonReader reader,
JsonDeserializationContext ctx) |
protected abstract T |
doDeserializeSingleArray(JsonReader reader,
JsonDeserializationContext ctx) |
deserialize, setBackReferencepublic T doDeserialize(JsonReader reader, JsonDeserializationContext ctx) throws IOException
JsonDeserializerdoDeserialize in class JsonDeserializer<T>reader - JsonReader used to read the JSON inputctx - Context for the full deserialization processIOException - if an error occurs reading the inputprotected abstract T doDeserializeArray(JsonReader reader, JsonDeserializationContext ctx) throws IOException
IOExceptionprotected T doDeserializeNonArray(JsonReader reader, JsonDeserializationContext ctx) throws IOException
IOExceptionprotected abstract T doDeserializeSingleArray(JsonReader reader, JsonDeserializationContext ctx) throws IOException
IOExceptionprotected <C> List<C> deserializeIntoList(JsonReader reader, JsonDeserializationContext ctx, JsonDeserializer<C> deserializer) throws IOException
List. We need the length of the array before creating it.C - type of the element inside the arrayreader - readerctx - context of the deserialization processdeserializer - deserializer for element inside the arrayIOException - if an error occurs while reading the arrayCopyright © 2013. All Rights Reserved.