public interface JSONParseCallback
Modifier and Type | Method and Description |
---|---|
void |
booleanToken(boolean tok)
Submits a boolean token from the JSON data
|
void |
endArray(String arrayName)
Indicates that the parser ran into an ending bracket event ]
|
void |
endBlock(String blockName)
Indicates that the parser ran into an ending bracket event }
|
boolean |
isAlive()
This method indicates to the Parser if this Callback is still alive
|
void |
keyValue(String key,
String value)
This method is called when a string key/value pair is detected within the json
it is essentially redundant when following string/numeric token.
|
void |
longToken(long tok)
Submits a numeric token from the JSON data
|
void |
numericToken(double tok)
Submits a numeric token from the JSON data
|
void |
startArray(String arrayName)
Indicates that the parser ran into an opening bracket event [
|
void |
startBlock(String blockName)
Indicates that the parser ran into an opening bracket event {
|
void |
stringToken(String tok)
Submits a token from the JSON data as a java string, this token is always a string value
|
void startBlock(String blockName)
void endBlock(String blockName)
void startArray(String arrayName)
void endArray(String arrayName)
void stringToken(String tok)
void numericToken(double tok)
tok
- the token valuevoid booleanToken(boolean tok)
tok
- the token valuevoid longToken(long tok)
void keyValue(String key, String value)
key
- the keyvalue
- a string valueboolean isAlive()