public class JSONReader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private JSON.Context |
context |
private JSONParser |
parser |
private JSONEventType |
type |
| Constructor and Description |
|---|
JSONReader(JSON.Context context,
InputSource in,
boolean multilineMode,
boolean ignoreWhitespace) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getBoolean() |
int |
getDepth() |
java.util.List<?> |
getList() |
java.util.Map<?,?> |
getMap() |
java.math.BigDecimal |
getNumber() |
java.lang.String |
getString() |
(package private) java.lang.Object |
getValue() |
<T> T |
getValue(java.lang.Class<T> cls) |
java.lang.Object |
getValue(java.lang.reflect.Type t) |
private int[] |
iexpand(int[] array,
int min) |
JSONEventType |
next() |
private java.lang.Object[] |
oexpand(java.lang.Object[] array,
int min) |
private JSON.Context context
private JSONParser parser
private JSONEventType type
JSONReader(JSON.Context context, InputSource in, boolean multilineMode, boolean ignoreWhitespace)
public JSONEventType next() throws java.io.IOException
java.io.IOExceptionpublic <T> T getValue(java.lang.Class<T> cls)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Object getValue(java.lang.reflect.Type t)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Map<?,?> getMap()
throws java.io.IOException
java.io.IOExceptionpublic java.util.List<?> getList()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getString()
throws java.io.IOException
java.io.IOExceptionpublic java.math.BigDecimal getNumber()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.Boolean getBoolean()
throws java.io.IOException
java.io.IOExceptionjava.lang.Object getValue()
throws java.io.IOException
java.io.IOExceptionpublic int getDepth()
private int[] iexpand(int[] array,
int min)
private java.lang.Object[] oexpand(java.lang.Object[] array,
int min)