public class JSONOutputStream
extends org.quickconnectfamily.json.JSONStream
| Constructor and Description |
|---|
JSONOutputStream(java.net.HttpURLConnection aConnection) |
JSONOutputStream(java.io.OutputStream aStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the output stream and the underlying stream
|
void |
writeObject(java.io.Serializable aSerializableObject)
Writes a Serializable Object to the underlying stream as a JSON string
|
public JSONOutputStream(java.net.HttpURLConnection aConnection)
throws java.net.ProtocolException
java.net.ProtocolExceptionpublic JSONOutputStream(java.io.OutputStream aStream)
aStream - - the stream to which the JSON is to be writtenpublic void writeObject(java.io.Serializable aSerializableObject)
throws JSONException,
java.io.IOException
aSerializableObject - - any Serializable object other than a raw Java Object and anything that inherits from java.awt.containerJSONExceptionjava.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOException