public class ObjectBuilder extends Object
| Constructor and Description |
|---|
ObjectBuilder(JSONParser parser) |
| Modifier and Type | Method and Description |
|---|---|
void |
addArrayVal(Object arr,
Object val) |
void |
addKeyVal(Object map,
Object key,
Object val) |
Object |
endArray(Object arr) |
static Object |
fromJSON(String json) |
Object |
getArray() |
Object |
getBigNumber() |
Object |
getBoolean() |
Object |
getKey() |
Object |
getLong() |
Object |
getNull() |
Object |
getNumber() |
Object |
getObject() |
Object |
getString() |
Object |
getVal() |
static Object |
getVal(JSONParser parser) |
Object |
newArray() |
Object |
newObject() |
Object |
objectEnd(Object obj) |
public ObjectBuilder(JSONParser parser) throws IOException
IOExceptionpublic static Object fromJSON(String json) throws IOException
IOExceptionpublic static Object getVal(JSONParser parser) throws IOException
IOExceptionpublic Object getVal() throws IOException
IOExceptionpublic Object getString() throws IOException
IOExceptionpublic Object getLong() throws IOException
IOExceptionpublic Object getNumber() throws IOException
IOExceptionpublic Object getBigNumber() throws IOException
IOExceptionpublic Object getBoolean() throws IOException
IOExceptionpublic Object getNull() throws IOException
IOExceptionpublic Object newObject() throws IOException
IOExceptionpublic Object getKey() throws IOException
IOExceptionpublic void addKeyVal(Object map, Object key, Object val) throws IOException
IOExceptionpublic Object getObject() throws IOException
IOExceptionpublic Object newArray()
public void addArrayVal(Object arr, Object val) throws IOException
IOExceptionpublic Object getArray() throws IOException
IOException