public class BinaryStreamWriter extends java.lang.Object implements IpcStreamWriter
Modifier and Type | Method and Description |
---|---|
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()
Writes marker signaling end of an object (resp. a document).
|
void |
writeObjectStart()
Writes marker signaling start of an object (resp. a document).
|
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.
|
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 writejava.io.IOException
- any errorpublic void writeScalarDouble(double d) throws java.io.IOException
writeScalarDouble
in interface IpcStreamWriter
d
- value to writejava.io.IOException
- any errorpublic void writeScalarInt(int i) throws java.io.IOException
writeScalarInt
in interface IpcStreamWriter
i
- value to writejava.io.IOException
- any errorpublic void writeScalarLong(long i) throws java.io.IOException
writeScalarLong
in interface IpcStreamWriter
i
- value to writejava.io.IOException
- any errorpublic void writeScalarString(java.lang.String s) throws java.io.IOException
writeScalarString
in interface IpcStreamWriter
s
- value to writejava.io.IOException
- any errorpublic void writeBinary(byte[] b) throws java.io.IOException
writeBinary
in interface IpcStreamWriter
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 writejava.io.IOException
- any errorpublic void writeAttachmentsStart() throws java.io.IOException
writeAttachmentsStart
in interface IpcStreamWriter
java.io.IOException
- any errorpublic void writeAttachmentsEnd() throws java.io.IOException
writeAttachmentsEnd
in interface IpcStreamWriter
java.io.IOException
- any errorpublic boolean hasBinarySupport()
hasBinarySupport
in interface IpcStreamWriter