Class 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

      Fields 
      Modifier and Type Field Description
      static AnyReader std  
    • Constructor Summary

      Constructors 
      Constructor Description
      AnyReader()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object fromBoolean​(boolean b)
      Method called to let implementation change a Boolean value that has been read from input.
      protected java.lang.Object fromEmbedded​(java.lang.Object value)  
      protected java.lang.Object fromKey​(java.lang.String key)
      Method called to let implementation change a key of an Object field after being parsed from input.
      protected java.lang.Object fromNull()
      Method called to let implementation change a null value that has been read from input.
      protected java.lang.Object fromString​(java.lang.String str)
      Method called to let implementation change a String value that has been read from input.
      java.lang.Object read​(JSONReader r, com.fasterxml.jackson.core.JsonParser p)  
      java.lang.Object[] readArrayFromArray​(JSONReader r, com.fasterxml.jackson.core.JsonParser p, CollectionBuilder b)  
      java.util.Collection<java.lang.Object> readCollectionFromArray​(JSONReader r, com.fasterxml.jackson.core.JsonParser p, CollectionBuilder b)  
      java.util.Map<java.lang.Object,​java.lang.Object> readFromObject​(JSONReader r, com.fasterxml.jackson.core.JsonParser p, MapBuilder b)  
      java.lang.Object readNext​(JSONReader r, com.fasterxml.jackson.core.JsonParser p)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AnyReader

        public AnyReader()
    • Method Detail

      • readNext

        public java.lang.Object readNext​(JSONReader r,
                                         com.fasterxml.jackson.core.JsonParser p)
                                  throws java.io.IOException
        Specified by:
        readNext in class ValueReader
        Throws:
        java.io.IOException
      • read

        public java.lang.Object read​(JSONReader r,
                                     com.fasterxml.jackson.core.JsonParser p)
                              throws java.io.IOException
        Specified by:
        read in class ValueReader
        Throws:
        java.io.IOException
      • readFromObject

        public java.util.Map<java.lang.Object,​java.lang.Object> readFromObject​(JSONReader r,
                                                                                     com.fasterxml.jackson.core.JsonParser p,
                                                                                     MapBuilder b)
                                                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readArrayFromArray

        public java.lang.Object[] readArrayFromArray​(JSONReader r,
                                                     com.fasterxml.jackson.core.JsonParser p,
                                                     CollectionBuilder b)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readCollectionFromArray

        public java.util.Collection<java.lang.Object> readCollectionFromArray​(JSONReader r,
                                                                              com.fasterxml.jackson.core.JsonParser p,
                                                                              CollectionBuilder b)
                                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • fromNull

        protected java.lang.Object fromNull()
                                     throws java.io.IOException
        Method called to let implementation change a null value that has been read from input. Default implementation returns null as is.
        Throws:
        java.io.IOException
      • fromBoolean

        protected java.lang.Object fromBoolean​(boolean b)
                                        throws java.io.IOException
        Method called to let implementation change a Boolean value that has been read from input. Default implementation returns Boolean value as is.
        Throws:
        java.io.IOException
      • fromKey

        protected java.lang.Object fromKey​(java.lang.String key)
                                    throws java.io.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:
        java.io.IOException
      • fromString

        protected java.lang.Object fromString​(java.lang.String str)
                                       throws java.io.IOException
        Method called to let implementation change a String value that has been read from input. Default implementation returns String value as is.
        Throws:
        java.io.IOException
      • fromEmbedded

        protected java.lang.Object fromEmbedded​(java.lang.Object value)
                                         throws java.io.IOException
        Throws:
        java.io.IOException