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

public Class AnyReader

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

ValueReader used for "untyped" values; ones that are bound to whatever java.lang.Object is the natural mapping to JSON value that parser currently points to

Field Summary

Modifier and TypeField and Description
public static final AnyReader
Inherited from tools.jackson.jr.ob.api.ValueReader:
_valueType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private final void
protected Object
fromBoolean(boolean b)

Method called to let implementation change a java.lang.Boolean value that has been read from input.

protected Object
protected String
fromKey(String key)

Method called to let implementation change a key of an Object field after being parsed from input.

protected Object
fromNull()

Method called to let implementation change a null value that has been read from input.

protected Object
fromString(String str)

Method called to let implementation change a java.lang.String value that has been read from input.

public Object
public Object[]
public Collection<Object>
public Map<String, 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

stdback to summary
public static final AnyReader std

Constructor Detail

AnyReaderback to summary
public AnyReader()

Method Detail

_reportNotEndObjectback to summary
private final void _reportNotEndObject(JsonParser p) throws JacksonException
fromBooleanback to summary
protected Object fromBoolean(boolean b) throws JacksonException

Method called to let implementation change a java.lang.Boolean value that has been read from input. Default implementation returns Boolean value as is.

fromEmbeddedback to summary
protected Object fromEmbedded(Object value) throws JacksonException
fromKeyback to summary
protected String fromKey(String key) throws JacksonException

Method called to let implementation change a key of an Object field after being parsed from input. Default implementation returns key as is.

fromNullback to summary
protected Object fromNull() throws JacksonException

Method called to let implementation change a null value that has been read from input. Default implementation returns null as is.

fromStringback to summary
protected Object fromString(String str) throws JacksonException

Method called to let implementation change a java.lang.String value that has been read from input. Default implementation returns String value as is.

readback to summary
public Object read(JSONReader r, JsonParser p) throws JacksonException

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

Annotations
@Override
readArrayFromArrayback to summary
public Object[] readArrayFromArray(JSONReader r, JsonParser p, CollectionBuilder b) throws JacksonException
readCollectionFromArrayback to summary
public Collection<Object> readCollectionFromArray(JSONReader r, JsonParser p, CollectionBuilder b) throws JacksonException
readFromObjectback to summary
public Map<String, Object> readFromObject(JSONReader r, JsonParser p, MapBuilder b) throws JacksonException
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