|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.joda.beans.ser.bin.MsgPack
org.joda.beans.ser.bin.MsgPackOutput
public final class MsgPackOutput
Outputter for MsgPack data.
| Constructor Summary | |
|---|---|
MsgPackOutput(DataOutputStream stream)
Creates an instance. |
|
MsgPackOutput(OutputStream stream)
Creates an instance. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying stream. |
void |
writeArrayHeader(int size)
Writes a MessagePack array header. |
void |
writeBoolean(boolean value)
Writes a MessagePack boolean. |
void |
writeBytes(byte[] bytes)
Writes a MessagePack byte block. |
void |
writeDouble(double value)
Writes a MessagePack double. |
void |
writeExtensionByte(int extensionType,
int value)
Writes an extension string using FIX_EXT_1. |
void |
writeExtensionString(int extensionType,
String str)
Writes an extension string using EXT_8. |
void |
writeFloat(float value)
Writes a MessagePack float. |
void |
writeInt(int value)
Writes a MessagePack int. |
void |
writeLong(long value)
Writes a MessagePack long. |
void |
writeMapHeader(int size)
Writes a MessagePack map header. |
void |
writeNil()
Writes a MessagePack nil. |
void |
writeString(String value)
Writes a MessagePack string. |
| Methods inherited from class org.joda.beans.ser.bin.MsgPack |
|---|
isArray, isIntegral, isMap, isString, toHex |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MsgPackOutput(OutputStream stream)
stream - the stream to write to, not nullpublic MsgPackOutput(DataOutputStream stream)
stream - the stream to write to, not null| Method Detail |
|---|
public void writeNil()
throws IOException
IOException - if an error occurs
public void writeBoolean(boolean value)
throws IOException
value - the value
IOException - if an error occurs
public void writeInt(int value)
throws IOException
value - the value
IOException - if an error occurs
public void writeLong(long value)
throws IOException
value - the value
IOException - if an error occurs
public void writeFloat(float value)
throws IOException
value - the value
IOException - if an error occurs
public void writeDouble(double value)
throws IOException
value - the value
IOException - if an error occurs
public void writeBytes(byte[] bytes)
throws IOException
bytes - the bytes, not null
IOException - if an error occurs
public void writeString(String value)
throws IOException
value - the value
IOException - if an error occurs
public void writeArrayHeader(int size)
throws IOException
size - the size
IOException - if an error occurs
public void writeMapHeader(int size)
throws IOException
size - the size
IOException - if an error occurs
public void writeExtensionByte(int extensionType,
int value)
throws IOException
extensionType - the typevalue - the value to write as the data
IOException - if an error occurs
public void writeExtensionString(int extensionType,
String str)
throws IOException
extensionType - the typestr - the string to write as the data
IOException - if an error occurs
public void close()
throws IOException
IOException - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||