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

public Class MapReader

extends ValueReader
Class Inheritance
Imports
java.util.*, tools.jackson.core.JacksonException, .JsonParser, .JsonToken, tools.jackson.jr.ob.JSONObjectException, tools.jackson.jr.ob.api.MapBuilder, .ValueReader

Reader for typed java.util.Map values.

Field Summary

Modifier and TypeField and Description
protected final Class<?>
protected final ValueReader
Inherited from tools.jackson.jr.ob.api.ValueReader:
_valueType

Constructor Summary

AccessConstructor and Description
public
MapReader(Class<?> mapType, ValueReader vr)

Method Summary

Modifier and TypeMethod and Description
protected JSONObjectException
public Object
public Object
readNext(JSONReader r, 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

_mapTypeback to summary
protected final Class<?> _mapType
_valueReaderback to summary
protected final ValueReader _valueReader

Constructor Detail

MapReaderback to summary
public MapReader(Class<?> mapType, ValueReader vr)

Method Detail

_reportWrongTokenback to summary
protected JSONObjectException _reportWrongToken(JsonParser p)
readback to summary
public Object read(JSONReader r, JsonParser p) throws JacksonException

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

Annotations
@Override
readNextback to summary
public Object readNext(JSONReader r, 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