com.novell.sentinel.json
Class JSONToString

java.lang.Object
  extended by com.novell.sentinel.json.JSONSerializerBase
      extended by com.novell.sentinel.json.JSONToString
All Implemented Interfaces:
JSONHandler

public class JSONToString
extends JSONSerializerBase

A GWT-safe implementation that serializes JSON events.


Constructor Summary
JSONToString()
           
 
Method Summary
 String toString()
          Return the serialized JSON data as a String.
protected  void write(char value)
          Output the passed char to whatever destination the derived class specifies.
protected  void write(String value)
          Output the passed string to whatever destination the derived class specifies.
 
Methods inherited from class com.novell.sentinel.json.JSONSerializerBase
booleanValue, endArray, endObject, name, nullValue, numberValue, setIndent, startArray, startObject, stringValue, willIndent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSONToString

public JSONToString()
Method Detail

toString

public String toString()
Return the serialized JSON data as a String.

Overrides:
toString in class Object
Returns:
The data.

write

protected void write(String value)
              throws IOException
Description copied from class: JSONSerializerBase
Output the passed string to whatever destination the derived class specifies.

Specified by:
write in class JSONSerializerBase
Parameters:
value - The value to write.
Throws:
IOException - If an error occurs while writing.

write

protected void write(char value)
              throws IOException
Description copied from class: JSONSerializerBase
Output the passed char to whatever destination the derived class specifies.

Specified by:
write in class JSONSerializerBase
Parameters:
value - The value to write.
Throws:
IOException - If an error occurs while writing.