Top Description Fields Constructors Methods
tools.jackson.jr.ob.impl

public Class SimpleValueReader

extends ValueReader
Class Inheritance
Imports
java.io.File, .IOException, java.net.URI, .URL, java.nio.file.Path, .Paths, java.util.*, java.util.stream.DoubleStream, .IntStream, .LongStream, tools.jackson.core.*, tools.jackson.jr.ob.JSONObjectException, tools.jackson.jr.ob.api.ValueReader

Default ValueReader used for simple scalar types and related, not including POJO-, java.util.Map and java.util.Collection types.

Field Summary

Modifier and TypeField and Description
protected final int
private static final double[]
private static final int[]
private static final long[]
Inherited from tools.jackson.jr.ob.api.ValueReader:
_valueType

Constructor Summary

AccessConstructor and Description
public
SimpleValueReader(Class<?> raw, int typeId)

Method Summary

Modifier and TypeMethod and Description
protected long
protected byte[]
protected double[]
protected int[]
protected long[]
protected Path
public Object
public Object
readNext(JSONReader reader, JsonParser p)

Overrides tools.jackson.jr.ob.api.ValueReader.readNext.

Method called to deserialize value of type supported by this reader, using given parser.

Inherited from tools.jackson.jr.ob.api.ValueReader:
_tokenDesc_tokenDesc_valueTypeDescvalueType

Field Detail

_typeIdback to summary
protected final int _typeId
NO_DOUBLESback to summary
private static final double[] NO_DOUBLES
NO_INTSback to summary
private static final int[] NO_INTS
NO_LONGSback to summary
private static final long[] NO_LONGS

Constructor Detail

SimpleValueReaderback to summary
public SimpleValueReader(Class<?> raw, int typeId)

Method Detail

_fetchLongback to summary
protected long _fetchLong(JsonParser p) throws JacksonException
_readBinaryback to summary
protected byte[] _readBinary(JsonParser p) throws JacksonException
_readDoubleArrayback to summary
protected double[] _readDoubleArray(JsonParser p) throws JacksonException
_readIntArrayback to summary
protected int[] _readIntArray(JsonParser p) throws JacksonException
_readLongArrayback to summary
protected long[] _readLongArray(JsonParser p) throws JacksonException
_readPathback to summary
protected Path _readPath(JsonParser p) throws JacksonException
readback to summary
public Object read(JSONReader reader, JsonParser p) throws JacksonException

Implements abstract tools.jackson.jr.ob.api.ValueReader.read.

Annotations
@Override
readNextback to summary
public Object readNext(JSONReader reader, JsonParser p) throws JacksonException

Overrides tools.jackson.jr.ob.api.ValueReader.readNext.

Doc from tools.jackson.jr.ob.api.ValueReader.readNext.

Method called to deserialize value of type supported by this reader, using given parser. Parser is not yet positioned to the (first) token of the value to read and needs to be advanced.

Default implementation simply calls `p.nextToken()` first, then calls {#link read(JSONReader, JsonParser), but some implementations may decide to implement this differently to use (slightly) more efficient accessors in JsonParser, like JsonParser#nextIntValue(int).

Annotations
@Override