Package org.noggit
Class ObjectBuilder
- java.lang.Object
-
- org.noggit.ObjectBuilder
-
public class ObjectBuilder extends java.lang.Object- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description (package private) JSONParserparser
-
Constructor Summary
Constructors Constructor Description ObjectBuilder(JSONParser parser)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArrayVal(java.lang.Object arr, java.lang.Object val)voidaddKeyVal(java.lang.Object map, java.lang.Object key, java.lang.Object val)java.lang.ObjectendArray(java.lang.Object arr)static java.lang.ObjectfromJSON(java.lang.String json)java.lang.ObjectgetArray()java.lang.ObjectgetBigNumber()java.lang.ObjectgetBoolean()java.lang.ObjectgetKey()java.lang.ObjectgetLong()java.lang.ObjectgetNull()java.lang.ObjectgetNumber()java.lang.ObjectgetObject()java.lang.ObjectgetString()java.lang.ObjectgetVal()static java.lang.ObjectgetVal(JSONParser parser)java.lang.ObjectnewArray()java.lang.ObjectnewObject()java.lang.ObjectobjectEnd(java.lang.Object obj)
-
-
-
Field Detail
-
parser
final JSONParser parser
-
-
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
-
-