|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.smila.ipc.json.JsonStreamWriter
public class JsonStreamWriter
IPC writer implementation for the JSON protocol.
Method Summary | |
---|---|
void |
close()
Closes the writer and the underlying stream. |
void |
closeWithoutStream()
Closes the writer but NOT the underlying stream. |
void |
writeMappingEnd()
Writes marker signaling end of a mapping. |
void |
writeMappingKey(java.lang.String s)
Writes a mapping key. |
void |
writeMappingStart()
Writes marker signaling start of a mapping. |
void |
writeObjectEnd()
JSON serialization does not support DOCUMENT_END tokens, so this does nothing. |
void |
writeObjectStart()
JSON serialization does not support DOCUMENT_START tokens, so this does nothing. |
void |
writeScalarBoolean(boolean b)
Writes boolean value. |
void |
writeScalarDouble(double d)
Writes double value. |
void |
writeScalarInt(int i)
Writes integer value. |
void |
writeScalarLong(long i)
Writes long value. |
void |
writeScalarString(java.lang.String s)
Writes string value. |
void |
writeSequenceEnd()
Writes marker signaling end of a sequence. |
void |
writeSequenceStart()
Writes marker signaling start of a sequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void close() throws java.io.IOException
close
in interface IpcStreamWriter
java.io.IOException
- any errorpublic void closeWithoutStream() throws java.io.IOException
closeWithoutStream
in interface IpcStreamWriter
java.io.IOException
- any errorpublic void writeObjectEnd() throws java.io.IOException
writeObjectEnd
in interface IpcStreamWriter
java.io.IOException
- any errorpublic void writeObjectStart() throws java.io.IOException
writeObjectStart
in interface IpcStreamWriter
java.io.IOException
- any errorpublic void writeMappingEnd() throws java.io.IOException
writeMappingEnd
in interface IpcStreamWriter
java.io.IOException
- any errorpublic void writeMappingStart() throws java.io.IOException
writeMappingStart
in interface IpcStreamWriter
java.io.IOException
- any errorpublic void writeScalarBoolean(boolean b) throws java.io.IOException
writeScalarBoolean
in interface IpcStreamWriter
b
- value to write
java.io.IOException
- any errorpublic void writeScalarDouble(double d) throws java.io.IOException
writeScalarDouble
in interface IpcStreamWriter
d
- value to write
java.io.IOException
- any errorpublic void writeScalarInt(int i) throws java.io.IOException
writeScalarInt
in interface IpcStreamWriter
i
- value to write
java.io.IOException
- any errorpublic void writeScalarLong(long i) throws java.io.IOException
writeScalarLong
in interface IpcStreamWriter
i
- value to write
java.io.IOException
- any errorpublic void writeScalarString(java.lang.String s) throws java.io.IOException
writeScalarString
in interface IpcStreamWriter
s
- value to write
java.io.IOException
- any errorpublic void writeSequenceEnd() throws java.io.IOException
writeSequenceEnd
in interface IpcStreamWriter
java.io.IOException
- any errorpublic void writeSequenceStart() throws java.io.IOException
writeSequenceStart
in interface IpcStreamWriter
java.io.IOException
- any errorpublic void writeMappingKey(java.lang.String s) throws java.io.IOException
writeMappingKey
in interface IpcStreamWriter
s
- value to write
java.io.IOException
- any error
|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |