public interface JsonHandler
JsonParser.parse(JsonHandler).| Modifier and Type | Method and Description |
|---|---|
boolean |
characters(char[] chars,
int start,
int end)
Called when token characters are encountered.
|
void |
endDocument()
Called when the document's end is encountered.
|
void |
startDocument()
Called when the document's start is encountered.
|
boolean |
structural(char ch)
Called when a structural token is encountered.
|
boolean |
whitespace(char[] chars,
int start,
int end)
Called when whitespace characters are encountered.
|
void startDocument()
void endDocument()
boolean structural(char ch)
{ } [ ] : ,
ch - The structural token.true to continue parsing, false to abort.boolean characters(char[] chars,
int start,
int end)
^".*"$ ^".*"$ ^-?(0|[1-9]\d*)(\.\d+)?([eE][+-]?([1-9]\d*))?$ ^null|true|false$chars - A reference to the underlying char[] buffer.start - The start index of the token.end - The end index of the token.true to continue parsing, false to abort.boolean whitespace(char[] chars,
int start,
int end)
^[ \n\r\t]+$
chars - A reference to the underlying char[] buffer.start - The start index of the token.end - The end index of the token.true to continue parsing, false to abort.Copyright © 2020 OpenJAX. All rights reserved.