eXo WS :: Framework :: JSON 2.4.0-Alpha1

org.exoplatform.ws.frameworks.json.impl
Class JsonDefaultHandler

java.lang.Object
  extended by 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
JsonDefaultHandler()
          Constructs new JsonHandler.
 
Method Summary
 void characters(char[] characters)
          Characters set found, it can be any characters.
 void endArray()
          This method will be called by JSONParser when ']' found.
 void endObject()
          This method will be called by JSONParser when '}' found.
 JsonValue getJsonObject()
          
 void key(String key)
          The key name found in the input JSON stream.
 void reset()
          Reset JSON events handler and prepare it for next usage.
 void startArray()
          This method will be called by JSONParser when '[' found.
 void startObject()
          This method will be called by JSONParser when '{' found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonDefaultHandler

public JsonDefaultHandler()
Constructs new JsonHandler.

Method Detail

characters

public void characters(char[] characters)
Characters set found, it can be any characters.

Specified by:
characters in interface JsonHandler
Parameters:
characters - the array of characters.

endArray

public void endArray()
This method will be called by JSONParser when ']' found.

Specified by:
endArray in interface JsonHandler

endObject

public void endObject()
This method will be called by JSONParser when '}' found.

Specified by:
endObject in interface JsonHandler

key

public void key(String key)
The key name found in the input JSON stream.

Specified by:
key in interface JsonHandler
Parameters:
key - the key.

startArray

public void startArray()
This method will be called by JSONParser when '[' found.

Specified by:
startArray in interface JsonHandler

startObject

public void startObject()
This method will be called by JSONParser when '{' found.

Specified by:
startObject in interface JsonHandler

reset

public void reset()
Reset JSON events handler and prepare it for next usage.


getJsonObject

public JsonValue getJsonObject()

Specified by:
getJsonObject in interface JsonHandler
Returns:
return Json Object.

eXo WS :: Framework :: JSON 2.4.0-Alpha1

Copyright © 2013 eXo Platform SAS. All Rights Reserved.