public class AnyReader extends ValueReader
ValueReader
used for "untyped" values; ones that are bound
to whatever Object
is the natural mapping to JSON
value that parser currently points toConstructor and Description |
---|
AnyReader() |
Modifier and Type | Method and Description |
---|---|
protected Object |
fromBoolean(boolean b)
Method called to let implementation change a
Boolean value that has been
read from input. |
protected Object |
fromEmbedded(Object value) |
protected Object |
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
String value that has been
read from input. |
Object |
read(JSONReader r,
JsonParser p) |
Object[] |
readArrayFromArray(JSONReader r,
JsonParser p,
CollectionBuilder b) |
Collection<Object> |
readCollectionFromArray(JSONReader r,
JsonParser p,
CollectionBuilder b) |
Map<Object,Object> |
readFromObject(JSONReader r,
JsonParser p,
MapBuilder b) |
Object |
readNext(JSONReader r,
JsonParser p) |
_tokenDesc, _tokenDesc
public static final AnyReader std
public Object readNext(JSONReader r, JsonParser p) throws IOException
readNext
in class ValueReader
IOException
public Object read(JSONReader r, JsonParser p) throws IOException
read
in class ValueReader
IOException
public Map<Object,Object> readFromObject(JSONReader r, JsonParser p, MapBuilder b) throws IOException
IOException
public Object[] readArrayFromArray(JSONReader r, JsonParser p, CollectionBuilder b) throws IOException
IOException
public Collection<Object> readCollectionFromArray(JSONReader r, JsonParser p, CollectionBuilder b) throws IOException
IOException
protected Object fromNull() throws IOException
IOException
protected Object fromBoolean(boolean b) throws IOException
Boolean
value that has been
read from input.
Default implementation returns Boolean value as is.IOException
protected Object fromKey(String key) throws IOException
IOException
protected Object fromString(String str) throws IOException
String
value that has been
read from input.
Default implementation returns String value as is.IOException
protected Object fromEmbedded(Object value) throws IOException
IOException
Copyright © 2014–2015 FasterXML. All rights reserved.