Package arc.util.serialization
Class JsonReader
java.lang.Object
arc.util.serialization.JsonReader
- All Implemented Interfaces:
BaseJsonReader
Lightweight JSON parser.
The default behavior is to parse the JSON into a DOM containing
The default behavior is to parse the JSON into a DOM containing
JsonValue objects. Extend this class and override
methods to perform event driven parsing. When this is done, the parse methods will return null.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected voidparse(char[] data, int offset, int length) parse(InputStream input) protected voidpop()protected voidstartArray(String name) protected voidstartObject(String name) protected void
-
Constructor Details
-
JsonReader
public JsonReader()
-
-
Method Details
-
parse
-
parse
-
parse
- Specified by:
parsein interfaceBaseJsonReader
-
parse
- Specified by:
parsein interfaceBaseJsonReader
-
parse
-
startObject
-
startArray
-
pop
protected void pop() -
string
-
number
-
number
-
bool
-