|
SMILA 1.0 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. |
boolean |
hasBinarySupport()
|
void |
writeAttachmentsEnd()
Writes marker signaling end of a attachments list. |
void |
writeAttachmentsStart()
Writes marker signaling start of attachments list. |
void |
writeBinary(byte[] b)
Writes binary value. |
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. any error |
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 IpcStreamWriterjava.io.IOException - any error
public void closeWithoutStream()
throws java.io.IOException
closeWithoutStream in interface IpcStreamWriterjava.io.IOException - any error
public void writeObjectEnd()
throws java.io.IOException
writeObjectEnd in interface IpcStreamWriterjava.io.IOException - any error
public void writeObjectStart()
throws java.io.IOException
writeObjectStart in interface IpcStreamWriterjava.io.IOException - any error
public void writeMappingEnd()
throws java.io.IOException
writeMappingEnd in interface IpcStreamWriterjava.io.IOException - any error
public void writeMappingStart()
throws java.io.IOException
writeMappingStart in interface IpcStreamWriterjava.io.IOException - any error
public void writeScalarBoolean(boolean b)
throws java.io.IOException
writeScalarBoolean in interface IpcStreamWriterb - value to write
java.io.IOException - any error
public void writeScalarDouble(double d)
throws java.io.IOException
writeScalarDouble in interface IpcStreamWriterd - value to write
java.io.IOException - any error
public void writeScalarInt(int i)
throws java.io.IOException
writeScalarInt in interface IpcStreamWriteri - value to write
java.io.IOException - any error
public void writeScalarLong(long i)
throws java.io.IOException
writeScalarLong in interface IpcStreamWriteri - value to write
java.io.IOException - any error
public void writeScalarString(java.lang.String s)
throws java.io.IOException
writeScalarString in interface IpcStreamWriters - value to write
java.io.IOException - any error
public void writeSequenceEnd()
throws java.io.IOException
writeSequenceEnd in interface IpcStreamWriterjava.io.IOException - any error
public void writeSequenceStart()
throws java.io.IOException
writeSequenceStart in interface IpcStreamWriterjava.io.IOException - any error
public void writeMappingKey(java.lang.String s)
throws java.io.IOException
writeMappingKey in interface IpcStreamWriters - value to write
java.io.IOException - any error
public void writeAttachmentsEnd()
throws java.io.IOException
writeAttachmentsEnd in interface IpcStreamWriterjava.io.IOException - any error
public void writeAttachmentsStart()
throws java.io.IOException
writeAttachmentsStart in interface IpcStreamWriterjava.io.IOException - any error
public void writeBinary(byte[] b)
throws java.io.IOException
writeBinary in interface IpcStreamWriterjava.io.IOException - any errorpublic boolean hasBinarySupport()
hasBinarySupport in interface IpcStreamWriter
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||