public class MapReader extends ValueReader
Map values.| Modifier and Type | Field and Description |
|---|---|
protected Class<?> |
_mapType |
protected ValueReader |
_valueReader |
_valueType| Constructor and Description |
|---|
MapReader(Class<?> mapType,
ValueReader vr) |
| Modifier and Type | Method and Description |
|---|---|
protected JSONObjectException |
_reportProblem(JsonParser p) |
Object |
read(JSONReader r,
JsonParser p)
Method called to deserialize value of type supported by this reader, using
given parser.
|
Object |
readNext(JSONReader r,
JsonParser p)
Method called to deserialize value of type supported by this reader, using
given parser.
|
_tokenDesc, _tokenDesc, _valueTypeDesc, valueTypeprotected final Class<?> _mapType
protected final ValueReader _valueReader
public MapReader(Class<?> mapType, ValueReader vr)
public Object readNext(JSONReader r, JsonParser p) throws IOException
ValueReader
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 in JsonParser, like JsonParser.nextIntValue(int).
readNext in class ValueReaderr - 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 streamIOExceptionpublic Object read(JSONReader r, JsonParser p) throws IOException
ValueReaderread in class ValueReaderr - 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 streamIOExceptionprotected JSONObjectException _reportProblem(JsonParser p)
Copyright © 2025 FasterXML. All rights reserved.