public class DataWriterCBOR extends AbstractDataWriter
DataWriter
for a CBOR stream.flushable, state
Constructor and Description |
---|
DataWriterCBOR(OutputStream os)
Creates a new
DataWriter on the given OutputStream . |
Modifier and Type | Method and Description |
---|---|
void |
writeArrayValueEnd0() |
void |
writeArrayValueStart0() |
void |
writeBooleanValue0(boolean value) |
void |
writeDoubleValue0(double value) |
protected void |
writeIntKey0(int value) |
void |
writeIntValue0(int value) |
void |
writeLongValue0(long value) |
void |
writeMapValueEnd0() |
void |
writeMapValueStart0() |
protected void |
writeStringKey0(String value) |
void |
writeStringValue0(String value) |
end, writeArrayValueEnd, writeArrayValueStart, writeBooleanValue, writeDoubleValue, writeIntKey, writeIntValue, writeLongValue, writeMapValueEnd, writeMapValueStart, writeStringKey, writeStringValue
public DataWriterCBOR(OutputStream os)
DataWriter
on the given OutputStream
.
The OutputStream
is automatically flushed when the data has been fully written.os
- the OutputStream
to which the CBOR structured data is written.public void writeArrayValueEnd0() throws Throwable
writeArrayValueEnd0
in class AbstractDataWriter
Throwable
public void writeArrayValueStart0() throws Throwable
writeArrayValueStart0
in class AbstractDataWriter
Throwable
public void writeBooleanValue0(boolean value) throws Throwable
writeBooleanValue0
in class AbstractDataWriter
Throwable
public void writeDoubleValue0(double value) throws Throwable
writeDoubleValue0
in class AbstractDataWriter
Throwable
protected void writeIntKey0(int value) throws Throwable
writeIntKey0
in class AbstractDataWriter
Throwable
public void writeIntValue0(int value) throws Throwable
writeIntValue0
in class AbstractDataWriter
Throwable
public void writeLongValue0(long value) throws Throwable
writeLongValue0
in class AbstractDataWriter
Throwable
public void writeMapValueEnd0() throws Throwable
writeMapValueEnd0
in class AbstractDataWriter
Throwable
public void writeMapValueStart0() throws Throwable
writeMapValueStart0
in class AbstractDataWriter
Throwable
protected void writeStringKey0(String value) throws Throwable
writeStringKey0
in class AbstractDataWriter
Throwable
public void writeStringValue0(String value) throws Throwable
writeStringValue0
in class AbstractDataWriter
Throwable