Class JsonDefaultHandler
- java.lang.Object
-
- org.exoplatform.ws.frameworks.json.impl.JsonDefaultHandler
-
- All Implemented Interfaces:
JsonHandler
public class JsonDefaultHandler extends Object implements JsonHandler
- Version:
- $Id: JsonDefaultHandler.java 34417 2009-07-23 14:42:56Z dkatayev $
- Author:
- Andrey Parfonov
-
-
Constructor Summary
Constructors Constructor Description JsonDefaultHandler()Constructs new JsonHandler.
-
Method Summary
All Methods Instance Methods Concrete 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.voidreset()Reset JSON events handler and prepare it for next usage.voidstartArray()This method will be called by JSONParser when '[' found.voidstartObject()This method will be called by JSONParser when '{' found.
-
-
-
Method Detail
-
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
public void key(String 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
public JsonValue getJsonObject()
- Specified by:
getJsonObjectin interfaceJsonHandler- Returns:
- return Json Object.
-
-