com.fasterxml.jackson.jr.ob.impl
Class AnyReader

java.lang.Object
  extended by com.fasterxml.jackson.jr.ob.impl.ValueReader
      extended by com.fasterxml.jackson.jr.ob.impl.AnyReader

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 to


Field Summary
static AnyReader std
           
 
Constructor Summary
AnyReader()
           
 
Method Summary
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)
           
 
Methods inherited from class com.fasterxml.jackson.jr.ob.impl.ValueReader
_tokenDesc, _tokenDesc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

std

public static final AnyReader std
Constructor Detail

AnyReader

public AnyReader()
Method Detail

readNext

public Object readNext(JSONReader r,
                       JsonParser p)
                throws IOException
Specified by:
readNext in class ValueReader
Throws:
IOException

read

public Object read(JSONReader r,
                   JsonParser p)
            throws IOException
Specified by:
read in class ValueReader
Throws:
IOException

readFromObject

public Map<Object,Object> readFromObject(JSONReader r,
                                         JsonParser p,
                                         MapBuilder b)
                                  throws IOException
Throws:
IOException

readArrayFromArray

public Object[] readArrayFromArray(JSONReader r,
                                   JsonParser p,
                                   CollectionBuilder b)
                            throws IOException
Throws:
IOException

readCollectionFromArray

public Collection<Object> readCollectionFromArray(JSONReader r,
                                                  JsonParser p,
                                                  CollectionBuilder b)
                                           throws IOException
Throws:
IOException

fromNull

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.

Throws:
IOException

fromBoolean

protected Object fromBoolean(boolean b)
                      throws IOException
Method called to let implementation change a Boolean value that has been read from input. Default implementation returns Boolean value as is.

Throws:
IOException

fromKey

protected Object 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.

Throws:
IOException

fromString

protected Object fromString(String str)
                     throws IOException
Method called to let implementation change a String value that has been read from input. Default implementation returns String value as is.

Throws:
IOException

fromEmbedded

protected Object fromEmbedded(Object value)
                       throws IOException
Throws:
IOException


Copyright © 2016 FasterXML. All rights reserved.