Top Description Fields Constructors Methods
com.fasterxml.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.Calendar, .Date, .UUID, java.util.stream.IntStream, com.fasterxml.jackson.core.JsonParser, .JsonToken, .JsonTokenId, com.fasterxml.jackson.jr.ob.JSONObjectException, com.fasterxml.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 int[]
Inherited from com.fasterxml.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 int[]
protected Path
public Object
read(JSONReader
Context object that allows calling other read methods for contained values of different types (for example for collection readers).
reader
,
JsonParser
Underlying parser used for reading decoded token stream
p
)

Implements abstract com.fasterxml.jackson.jr.ob.api.ValueReader.read.

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

public Object
readNext(JSONReader
Context object that allows calling other read methods for contained values of different types (for example for collection readers).
reader
,
JsonParser
Underlying parser used for reading decoded token stream
p
)

Overrides com.fasterxml.jackson.jr.ob.api.ValueReader.readNext.

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

Inherited from com.fasterxml.jackson.jr.ob.api.ValueReader:
_tokenDesc_tokenDescvalueType

Field Detail

_typeIdback to summary
protected final int _typeId
NO_INTSback to summary
private static final int[] NO_INTS

Constructor Detail

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

Method Detail

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

Implements abstract com.fasterxml.jackson.jr.ob.api.ValueReader.read.

Doc from com.fasterxml.jackson.jr.ob.api.ValueReader.read.

Method called to deserialize value of type supported by this reader, using given parser. Parser is already positioned to the (first) token of the value to read.

Parameters
reader:JSONReader

Context object that allows calling other read methods for contained values of different types (for example for collection readers).

p:JsonParser

Underlying parser used for reading decoded token stream

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

Overrides com.fasterxml.jackson.jr.ob.api.ValueReader.readNext.

Doc from com.fasterxml.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 accessor in JsonParser, like JsonParser#nextIntValue(int).

Parameters
reader:JSONReader

Context object that allows calling other read methods for contained values of different types (for example for collection readers).

p:JsonParser

Underlying parser used for reading decoded token stream

Annotations
@Override