Package org.noggit

Class ObjectBuilder


  • public class ObjectBuilder
    extends java.lang.Object
    Version:
    $Id$
    • Constructor Detail

      • ObjectBuilder

        public ObjectBuilder​(JSONParser parser)
                      throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • fromJSON

        public static java.lang.Object fromJSON​(java.lang.String json)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getVal

        public static java.lang.Object getVal​(JSONParser parser)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • getVal

        public java.lang.Object getVal()
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getString

        public java.lang.Object getString()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getLong

        public java.lang.Object getLong()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • getNumber

        public java.lang.Object getNumber()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getBigNumber

        public java.lang.Object getBigNumber()
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • getBoolean

        public java.lang.Object getBoolean()
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • getNull

        public java.lang.Object getNull()
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • newObject

        public java.lang.Object newObject()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • getKey

        public java.lang.Object getKey()
                                throws java.io.IOException
        Throws:
        java.io.IOException
      • addKeyVal

        public void addKeyVal​(java.lang.Object map,
                              java.lang.Object key,
                              java.lang.Object val)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • objectEnd

        public java.lang.Object objectEnd​(java.lang.Object obj)
      • getObject

        public java.lang.Object getObject()
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • newArray

        public java.lang.Object newArray()
      • addArrayVal

        public void addArrayVal​(java.lang.Object arr,
                                java.lang.Object val)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • endArray

        public java.lang.Object endArray​(java.lang.Object arr)
      • getArray

        public java.lang.Object getArray()
                                  throws java.io.IOException
        Throws:
        java.io.IOException