Package com.fasterxml.jackson.jr.ob.impl
Class SimpleValueReader
java.lang.Object
com.fasterxml.jackson.jr.ob.api.ValueReader
com.fasterxml.jackson.jr.ob.impl.SimpleValueReader
Default
ValueReader used for simple scalar types and related,
not including POJO-, Map and Collection
types.-
Field Summary
FieldsFields inherited from class com.fasterxml.jackson.jr.ob.api.ValueReader
_valueType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected long_fetchLong(com.fasterxml.jackson.core.JsonParser p) protected byte[]_readBinary(com.fasterxml.jackson.core.JsonParser p) protected boolean[]_readBooleanArray(com.fasterxml.jackson.core.JsonParser p) protected double[]_readDoubleArray(com.fasterxml.jackson.core.JsonParser p) protected float[]_readFloatArray(com.fasterxml.jackson.core.JsonParser p) protected int[]_readIntArray(com.fasterxml.jackson.core.JsonParser p) protected long[]_readLongArray(com.fasterxml.jackson.core.JsonParser p) protected Path_readPath(com.fasterxml.jackson.core.JsonParser p) protected short[]_readShortArray(com.fasterxml.jackson.core.JsonParser p) read(JSONReader reader, com.fasterxml.jackson.core.JsonParser p) Method called to deserialize value of type supported by this reader, using given parser.readNext(JSONReader reader, com.fasterxml.jackson.core.JsonParser p) Method called to deserialize value of type supported by this reader, using given parser.Methods inherited from class com.fasterxml.jackson.jr.ob.api.ValueReader
_tokenDesc, _tokenDesc, _valueTypeDesc, valueType
-
Field Details
-
_typeId
protected final int _typeId
-
-
Constructor Details
-
SimpleValueReader
-
-
Method Details
-
readNext
public Object readNext(JSONReader reader, com.fasterxml.jackson.core.JsonParser p) throws IOException Description copied from class:ValueReaderMethod 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
ValueReader.read(JSONReader, JsonParser), but some implementations may decide to implement this differently to use (slightly) more efficient accessors inJsonParser, likeJsonParser.nextIntValue(int).- Overrides:
readNextin classValueReader- Parameters:
reader- Context object that allows calling other read methods for contained values of different types (for example for collection readers).p- Underlying parser used for reading decoded token stream- Throws:
IOException
-
read
Description copied from class:ValueReaderMethod 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.- Specified by:
readin classValueReader- Parameters:
reader- Context object that allows calling other read methods for contained values of different types (for example for collection readers).p- Underlying parser used for reading decoded token stream- Throws:
IOException
-
_readBinary
- Throws:
IOException
-
_readPath
- Throws:
IOException
-
_readIntArray
- Throws:
IOException
-
_readLongArray
- Throws:
IOException
-
_fetchLong
- Throws:
IOException
-
_readDoubleArray
- Throws:
IOException
-
_readBooleanArray
- Throws:
IOException
-
_readShortArray
- Throws:
IOException
-
_readFloatArray
- Throws:
IOException
-