ValueReaders), but does not handle
any of reading itself (despite name).
Life-cycle is such that initial instance (called blueprint)
is constructed first (including possible configuration
using mutant factory methods). This blueprint object
acts as a factory, and is never used for direct reading;
instead, per-call instance is created by calling
perOperationInstance.
| Modifier and Type | Field and Description |
|---|---|
| protected final CollectionBuilder | _collectionBuilder
Handler that takes care of constructing |
| protected final int | |
| protected final MapBuilder | _mapBuilder
Handler that takes care of constructing |
| protected final JsonParser | _parser
Parser used by this reader instance. |
| protected final ValueReaderLocator | _readerLocator
Object that is used to find value readers dynamically. |
| protected final Object[] | _setterBuffer
Minor performance optimization: |
| protected final TreeCodec | _treeCodec
Configured |
| Access | Constructor and Description |
|---|---|
| public | JSONReader(CollectionBuilder lb, MapBuilder mb)
Constructor used for creating the blueprint instances. |
| protected | JSONReader(JSONReader base, int features, ValueReaderLocator loc, TreeCodec tc, JsonParser p)
Constructor used for per-operation (non-blueprint) instance. |
| Modifier and Type | Method and Description |
|---|---|
| protected CollectionBuilder | |
| protected MapBuilder | |
| protected JSONReader | _with(CollectionBuilder lb, MapBuilder mb)
Overridable method that all mutant factories call if a new instance is to be constructed |
| public boolean | |
| public int | |
| public boolean | |
| public JSONReader | |
| public Object[] | |
| public <T> T[] | |
| public <T> T | |
| public List | |
| public <T> List | readListOf(Class<T> type)
Method for reading a JSON Array from input and building a |
| public Map | |
| public <T> Map | readMapOf(Class<T> type)
Method for reading a JSON Object from input and building a |
| public TreeNode | |
| public Object | readValue()
Method for reading a "simple" Object of type indicated by JSON
content: |
| public JSONReader | |
| public JSONReader | |
| public JSONReader |
| _collectionBuilder | back to summary |
|---|---|
| protected final CollectionBuilder _collectionBuilder Handler that takes care of constructing | |
| _features | back to summary |
|---|---|
| protected final int _features | |
| _mapBuilder | back to summary |
|---|---|
| protected final MapBuilder _mapBuilder Handler that takes care of constructing | |
| _parser | back to summary |
|---|---|
| protected final JsonParser _parser Parser used by this reader instance. | |
| _readerLocator | back to summary |
|---|---|
| protected final ValueReaderLocator _readerLocator Object that is used to find value readers dynamically. | |
| _setterBuffer | back to summary |
|---|---|
| protected final Object[] _setterBuffer Minor performance optimization:
| |
| _treeCodec | back to summary |
|---|---|
| protected final TreeCodec _treeCodec Configured | |
| JSONReader | back to summary |
|---|---|
| public JSONReader(CollectionBuilder lb, MapBuilder mb) Constructor used for creating the blueprint instances. | |
| JSONReader | back to summary |
|---|---|
| protected JSONReader(JSONReader base, int features, ValueReaderLocator loc, TreeCodec tc, JsonParser p) Constructor used for per-operation (non-blueprint) instance. | |
| _collectionBuilder | back to summary |
|---|---|
| protected CollectionBuilder _collectionBuilder(Class<?> collType) | |
| _mapBuilder | back to summary |
|---|---|
| protected MapBuilder _mapBuilder(Class<?> mapType) | |
| _with | back to summary |
|---|---|
| protected JSONReader _with(CollectionBuilder lb, MapBuilder mb) Overridable method that all mutant factories call if a new instance is to be constructed | |
| arraysAsLists | back to summary |
|---|---|
public boolean arraysAsLists()
| |
| features | back to summary |
|---|---|
public int features()
| |
| isEnabled | back to summary |
|---|---|
public boolean isEnabled(JSON.
| |
| perOperationInstance | back to summary |
|---|---|
| public JSONReader perOperationInstance(int features, ValueReaderLocator loc, TreeCodec tc, JsonParser p) | |
| readArray | back to summary |
|---|---|
| public Object[] readArray() throws IOException Method for reading a JSON Array from input and building a | |
| readArrayOf | back to summary |
|---|---|
public <T> T[] readArrayOf(Class<T> type) throws IOException
| |
| readBean | back to summary |
|---|---|
| public <T> T readBean(Class<T> type) throws IOException Method for reading a JSON Object from input and building a Bean of specified type out of it; Bean has to conform to standard Java Bean specification by having setters for passing JSON Object properties.
| |
| readList | back to summary |
|---|---|
| public List Method for reading a JSON Array from input and building a | |
| readListOf | back to summary |
|---|---|
| public <T> List Method for reading a JSON Array from input and building a
| |
| readMap | back to summary |
|---|---|
| public Map Method for reading a JSON Object from input and building a | |
| readMapOf | back to summary |
|---|---|
| public <T> Map Method for reading a JSON Object from input and building a
| |
| readTree | back to summary |
|---|---|
public TreeNode readTree() throws IOException
| |
| readValue | back to summary |
|---|---|
| public Object readValue() throws IOException Method for reading a "simple" Object of type indicated by JSON
content: | |
| with | back to summary |
|---|---|
| public JSONReader with(MapBuilder mb) | |
| with | back to summary |
|---|---|
| public JSONReader with(CollectionBuilder lb) | |
| withCacheCheck | back to summary |
|---|---|
| public JSONReader withCacheCheck(int features) | |