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) JSONParser
parser
-
Constructor Summary
Constructors Constructor Description ObjectBuilder(JSONParser parser)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArrayVal(java.lang.Object arr, java.lang.Object val)
void
addKeyVal(java.lang.Object map, java.lang.Object key, java.lang.Object val)
java.lang.Object
endArray(java.lang.Object arr)
static java.lang.Object
fromJSON(java.lang.String json)
java.lang.Object
getArray()
java.lang.Object
getBigNumber()
java.lang.Object
getBoolean()
java.lang.Object
getKey()
java.lang.Object
getLong()
java.lang.Object
getNull()
java.lang.Object
getNumber()
java.lang.Object
getObject()
java.lang.Object
getString()
java.lang.Object
getVal()
static java.lang.Object
getVal(JSONParser parser)
java.lang.Object
newArray()
java.lang.Object
newObject()
java.lang.Object
objectEnd(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
-
-