Package com.dropbox.core.json
Class JsonArrayReader<T,L>
- java.lang.Object
-
- com.dropbox.core.json.JsonReader<L>
-
- com.dropbox.core.json.JsonArrayReader<T,L>
-
public class JsonArrayReader<T,L> extends JsonReader<L>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.dropbox.core.json.JsonReader
JsonReader.FieldMapping, JsonReader.FileLoadException
-
-
Field Summary
Fields Modifier and Type Field Description Collector<T,? extends L>
collector
JsonReader<? extends T>
elementReader
-
Fields inherited from class com.dropbox.core.json.JsonReader
BinaryReader, BooleanReader, Float32Reader, Float64Reader, Int32Reader, Int64Reader, StringReader, UInt32Reader, UInt64Reader, UnsignedLongReader, VoidReader
-
-
Constructor Summary
Constructors Constructor Description JsonArrayReader(JsonReader<? extends T> elementReader, Collector<T,? extends L> collector)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> JsonArrayReader<T,java.util.List<T>>
mk(JsonReader<? extends T> elementReader)
static <T,L>
JsonArrayReader<T,L>mk(JsonReader<? extends T> elementReader, Collector<T,? extends L> collector)
static <T,L>
Lread(JsonReader<? extends T> elementReader, Collector<T,? extends L> collector, com.fasterxml.jackson.core.JsonParser parser)
L
read(com.fasterxml.jackson.core.JsonParser parser)
-
Methods inherited from class com.dropbox.core.json.JsonReader
expectArrayEnd, expectArrayStart, expectObjectEnd, expectObjectStart, isArrayEnd, isArrayStart, nextToken, readBoolean, readDouble, readEnum, readField, readFields, readFromFile, readFromFile, readFromTags, readFully, readFully, readFully, readFully, readOptional, readTags, readUnsignedLong, readUnsignedLongField, skipValue, validate
-
-
-
-
Field Detail
-
elementReader
public final JsonReader<? extends T> elementReader
-
-
Constructor Detail
-
JsonArrayReader
public JsonArrayReader(JsonReader<? extends T> elementReader, Collector<T,? extends L> collector)
-
-
Method Detail
-
mk
public static <T> JsonArrayReader<T,java.util.List<T>> mk(JsonReader<? extends T> elementReader)
-
mk
public static <T,L> JsonArrayReader<T,L> mk(JsonReader<? extends T> elementReader, Collector<T,? extends L> collector)
-
read
public L read(com.fasterxml.jackson.core.JsonParser parser) throws JsonReadException, java.io.IOException
- Specified by:
read
in classJsonReader<L>
- Throws:
JsonReadException
java.io.IOException
-
read
public static <T,L> L read(JsonReader<? extends T> elementReader, Collector<T,? extends L> collector, com.fasterxml.jackson.core.JsonParser parser) throws JsonReadException, java.io.IOException
- Throws:
JsonReadException
java.io.IOException
-
-