|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.InputParser
org.basex.query.util.json.JsonParser
public final class JsonParser
A JSON parser generating parse events similar to a SAX XML parser.
Nested Class Summary | |
---|---|
static class |
JsonParser.Spec
JSON specs. |
Field Summary |
---|
Fields inherited from class org.basex.util.InputParser |
---|
file, input, length, mark, pos |
Method Summary | |
---|---|
static void |
parse(java.lang.String json,
JsonParser.Spec sp,
boolean unesc,
JsonHandler h,
InputInfo ii)
Parses the input JSON string and directs the parse events to the given handler. |
Methods inherited from class org.basex.util.InputParser |
---|
consume, consume, consume, curr, curr, file, found, info, mark, more, next, quote, rest |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void parse(java.lang.String json, JsonParser.Spec sp, boolean unesc, JsonHandler h, InputInfo ii) throws QueryException
json
- JSON string to parsesp
- JSON spec to useunesc
- unescape flagh
- JSON handlerii
- input info
QueryException
- parse exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |