Top Description Fields Constructors Methods
com.fasterxml.jackson.jr.ob.impl

public Class AnyReader

extends ValueReader
Class Inheritance
Static Imports
com.fasterxml.jackson.core.JsonTokenId.*

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 com.fasterxml.jackson.jr.ob.api.ValueReader:
_valueType

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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
read(JSONReader
Context object that allows calling other read methods for contained values of different types (for example for collection readers).
r
,
JsonParser
Underlying parser used for reading decoded token stream
p
)

Implements abstract com.fasterxml.jackson.jr.ob.api.ValueReader.read.

Method called to deserialize value of type supported by this reader, using given parser.

public Object[]
public Collection<Object>
public Map<String, Object>
public Object
readNext(JSONReader
Context object that allows calling other read methods for contained values of different types (for example for collection readers).
r
,
JsonParser
Underlying parser used for reading decoded token stream
p
)

Overrides com.fasterxml.jackson.jr.ob.api.ValueReader.readNext.

Method called to deserialize value of type supported by this reader, using given parser.

Inherited from com.fasterxml.jackson.jr.ob.api.ValueReader:
_tokenDesc_tokenDescvalueType

Field Detail

stdback to summary
public static final AnyReader std

Constructor Detail

AnyReaderback to summary
public AnyReader()

Method Detail

fromBooleanback to summary
protected Object fromBoolean(boolean b) throws IOException

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 IOException
fromKeyback to summary
protected String fromKey(String key) throws IOException

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 IOException

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 IOException

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 IOException

Implements abstract com.fasterxml.jackson.jr.ob.api.ValueReader.read.

Doc from com.fasterxml.jackson.jr.ob.api.ValueReader.read.

Method 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.

Parameters
r:JSONReader

Context object that allows calling other read methods for contained values of different types (for example for collection readers).

p:JsonParser

Underlying parser used for reading decoded token stream

Annotations
@Override
readArrayFromArrayback to summary
public Object[] readArrayFromArray(JSONReader r, JsonParser p, CollectionBuilder b) throws IOException
readCollectionFromArrayback to summary
public Collection<Object> readCollectionFromArray(JSONReader r, JsonParser p, CollectionBuilder b) throws IOException
readFromObjectback to summary
public Map<String, Object> readFromObject(JSONReader r, JsonParser p, MapBuilder b) throws IOException
readNextback to summary
public Object readNext(JSONReader r, JsonParser p) throws IOException

Overrides com.fasterxml.jackson.jr.ob.api.ValueReader.readNext.

Doc from com.fasterxml.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 accessor in JsonParser, like JsonParser#nextIntValue(int).

Parameters
r:JSONReader

Context object that allows calling other read methods for contained values of different types (for example for collection readers).

p:JsonParser

Underlying parser used for reading decoded token stream

Annotations
@Override