Class JsonDefaultHandler
java.lang.Object
org.exoplatform.ws.frameworks.json.impl.JsonDefaultHandler
- All Implemented Interfaces:
JsonHandler
- Version:
- $Id: JsonDefaultHandler.java 34417 2009-07-23 14:42:56Z dkatayev $
- Author:
- Andrey Parfonov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] characters) Characters set found, it can be any characters.voidendArray()This method will be called by JSONParser when ']' found.voidThis method will be called by JSONParser when '}' found.voidThe key name found in the input JSON stream.voidreset()Reset JSON events handler and prepare it for next usage.voidThis method will be called by JSONParser when '[' found.voidThis method will be called by JSONParser when '{' found.
-
Constructor Details
-
JsonDefaultHandler
public JsonDefaultHandler()Constructs new JsonHandler.
-
-
Method Details
-
characters
public void characters(char[] characters) Characters set found, it can be any characters.- Specified by:
charactersin interfaceJsonHandler- Parameters:
characters- the array of characters.
-
endArray
public void endArray()This method will be called by JSONParser when ']' found.- Specified by:
endArrayin interfaceJsonHandler
-
endObject
public void endObject()This method will be called by JSONParser when '}' found.- Specified by:
endObjectin interfaceJsonHandler
-
key
The key name found in the input JSON stream.- Specified by:
keyin interfaceJsonHandler- Parameters:
key- the key.
-
startArray
public void startArray()This method will be called by JSONParser when '[' found.- Specified by:
startArrayin interfaceJsonHandler
-
startObject
public void startObject()This method will be called by JSONParser when '{' found.- Specified by:
startObjectin interfaceJsonHandler
-
reset
public void reset()Reset JSON events handler and prepare it for next usage. -
getJsonObject
- Specified by:
getJsonObjectin interfaceJsonHandler- Returns:
- return Json Object.
-