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 java.lang.Object
implements JsonHandler

Version:
$Id: $
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(java.lang.String key)
          The key name found in the input JSON stream.
 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(java.lang.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

getJsonObject

public JsonValue getJsonObject()

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


Copyright © 2010 eXo Platform SAS. All Rights Reserved.