com.novell.sentinel.json
Class JSONToString
java.lang.Object
com.novell.sentinel.json.JSONSerializerBase
com.novell.sentinel.json.JSONToString
- All Implemented Interfaces:
- JSONHandler
public class JSONToString
- extends JSONSerializerBase
A GWT-safe implementation that serializes JSON events.
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 |
JSONToString
public JSONToString()
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.