|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.novell.sentinel.json.JSONSerializerBase
com.novell.sentinel.json.java.JSONSerializer
public class JSONSerializer
Implementation of JSONHandler to serialize a series of JSON "events" to a java.io.Writer.
| Constructor Summary | |
|---|---|
JSONSerializer()
Default constructor. |
|
JSONSerializer(Writer _writer)
Constructor which sets the Writer to use for output. |
|
| Method Summary | |
|---|---|
Writer |
getWriter()
|
void |
setWriter(Writer _writer)
Set the Writer to use for output. |
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, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSONSerializer()
public JSONSerializer(Writer _writer)
_writer - The Writer.| Method Detail |
|---|
public void setWriter(Writer _writer)
_writer - The Writer.public Writer getWriter()
protected void write(String value)
throws IOException
JSONSerializerBase
write in class JSONSerializerBasevalue - The value to write.
IOException - If an error occurs while writing.
protected void write(char value)
throws IOException
JSONSerializerBase
write in class JSONSerializerBasevalue - The value to write.
IOException - If an error occurs while writing.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||