Interface JsonHandler
-
- All Known Implementing Classes:
JsonDefaultHandler
public interface JsonHandler- Version:
- $Id: JsonHandler.java 34417 2009-07-23 14:42:56Z dkatayev $
- Author:
- Andrey Parfonov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcharacters(char[] characters)Characters set found, it can be any characters.voidendArray()This method will be called by JSONParser when ']' found.voidendObject()This method will be called by JSONParser when '}' found.JsonValuegetJsonObject()voidkey(String key)The key name found in the input JSON stream.voidstartArray()This method will be called by JSONParser when '[' found.voidstartObject()This method will be called by JSONParser when '{' found.
-
-
-
Method Detail
-
startObject
void startObject()
This method will be called by JSONParser when '{' found.
-
endObject
void endObject()
This method will be called by JSONParser when '}' found.
-
startArray
void startArray()
This method will be called by JSONParser when '[' found.
-
endArray
void endArray()
This method will be called by JSONParser when ']' found.
-
key
void key(String key)
The key name found in the input JSON stream.- Parameters:
key- the key.
-
characters
void characters(char[] characters)
Characters set found, it can be any characters.- Parameters:
characters- the array of characters.
-
getJsonObject
JsonValue getJsonObject()
- Returns:
- return Json Object.
-
-