public class NativeBlinkOutput
extends java.lang.Object
Write methods for variable size data types come in two flavors:
writeInlineXxx and writeDataXxx for inline and data area respectively.
NativeBlinkInput| Modifier and Type | Method and Description |
|---|---|
static void |
writeBoolean(com.cinnober.msgcodec.io.ByteSink out,
boolean value)
Write a boolean.
|
static void |
writeBooleanNull(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Boolean value)
Write a nullable boolean.
|
static void |
writeDataBigDecimal(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigDecimal value)
Write a big decimal number.
|
static void |
writeDataBigInt(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigInteger value)
Write a signed big integer.
|
static void |
writeDataBinary(com.cinnober.msgcodec.io.ByteSink out,
byte[] value)
Write binary data.
|
static void |
writeDataStringUTF8(com.cinnober.msgcodec.io.ByteSink out,
java.lang.String value)
Write a unicode string.
|
static void |
writeDecimal(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigDecimal value)
Write a decimal number.
|
static void |
writeDecimalNull(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigDecimal value)
Write a nullable decimal number.
|
static void |
writeFloat32(com.cinnober.msgcodec.io.ByteSink out,
float value)
Write a 32-bit floating point number.
|
static void |
writeFloat32Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Float value)
Write a nullable 32-bit floating point number.
|
static void |
writeFloat64(com.cinnober.msgcodec.io.ByteSink out,
double value)
Write a 64-bit floating point number.
|
static void |
writeFloat64Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Double value)
Write a nullable 64-bit floating point number.
|
static void |
writeInlineBinary(com.cinnober.msgcodec.io.ByteSink out,
byte[] value,
int maxLength)
Write binary data.
|
static void |
writeInlineBinaryNull(com.cinnober.msgcodec.io.ByteSink out,
byte[] value,
int maxLength)
Write nullable binary data.
|
static void |
writeInlineStringUTF8(com.cinnober.msgcodec.io.ByteSink out,
java.lang.String value,
int maxLength)
Write a unicode string.
|
static void |
writeInlineStringUTF8Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.String value,
int maxLength)
Write a nullable unicode string.
|
static void |
writeInt16(com.cinnober.msgcodec.io.ByteSink out,
short value)
Write a signed 16-bit integer.
|
static void |
writeInt16Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Short value)
Write a nullable signed 16-bit integer.
|
static void |
writeInt32(com.cinnober.msgcodec.io.ByteSink out,
int value)
Write a signed 32-bit integer.
|
static void |
writeInt32Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Integer value)
Write a nullable signed 32-bit integer.
|
static void |
writeInt64(com.cinnober.msgcodec.io.ByteSink out,
long value)
Write a signed 64-bit integer.
|
static void |
writeInt64Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Long value)
Write a nullable signed 64-bit integer.
|
static void |
writeInt8(com.cinnober.msgcodec.io.ByteSink out,
byte value)
Write a signed 8-bit integer.
|
static void |
writeInt8Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Byte value)
Write a nullable signed 8-bit integer.
|
static void |
writeUInt16(com.cinnober.msgcodec.io.ByteSink out,
short value) |
static void |
writeUInt16Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Short value) |
static void |
writeUInt32(com.cinnober.msgcodec.io.ByteSink out,
int value) |
static void |
writeUInt32Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Integer value) |
static void |
writeUInt64(com.cinnober.msgcodec.io.ByteSink out,
long value) |
static void |
writeUInt64Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Long value) |
static void |
writeUInt8(com.cinnober.msgcodec.io.ByteSink out,
byte value) |
static void |
writeUInt8Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Byte value) |
public static void writeInt8(com.cinnober.msgcodec.io.ByteSink out,
byte value)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic static void writeInt16(com.cinnober.msgcodec.io.ByteSink out,
short value)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic static void writeInt32(com.cinnober.msgcodec.io.ByteSink out,
int value)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic static void writeInt64(com.cinnober.msgcodec.io.ByteSink out,
long value)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic static void writeInt8Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Byte value)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic static void writeInt16Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Short value)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic static void writeInt32Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Integer value)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic static void writeInt64Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Long value)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic static void writeUInt8(com.cinnober.msgcodec.io.ByteSink out,
byte value)
throws java.io.IOException
java.io.IOExceptionpublic static void writeUInt8Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Byte value)
throws java.io.IOException
java.io.IOExceptionpublic static void writeUInt16(com.cinnober.msgcodec.io.ByteSink out,
short value)
throws java.io.IOException
java.io.IOExceptionpublic static void writeUInt16Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Short value)
throws java.io.IOException
java.io.IOExceptionpublic static void writeUInt32(com.cinnober.msgcodec.io.ByteSink out,
int value)
throws java.io.IOException
java.io.IOExceptionpublic static void writeUInt32Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Integer value)
throws java.io.IOException
java.io.IOExceptionpublic static void writeUInt64(com.cinnober.msgcodec.io.ByteSink out,
long value)
throws java.io.IOException
java.io.IOExceptionpublic static void writeUInt64Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Long value)
throws java.io.IOException
java.io.IOExceptionpublic static void writeFloat32(com.cinnober.msgcodec.io.ByteSink out,
float value)
throws java.io.IOException
Since the Blink protocol does not support 32-bit floating point numbers, the value is written as a 64-bit floating point number.
out - the output stream to write to, not null.value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionwriteFloat64(ByteSink, double)public static void writeFloat32Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Float value)
throws java.io.IOException
Since the Blink protocol does not support 32-bit floating point numbers, the value is written as a 64-bit floating point number.
out - the output stream to write to, not null.value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionwriteFloat64Null(ByteSink, Double)public static void writeFloat64(com.cinnober.msgcodec.io.ByteSink out,
double value)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic static void writeFloat64Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Double value)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic static void writeDecimal(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigDecimal value)
throws java.io.IOException,
java.lang.NullPointerException
out - the output stream to write to, not null.value - the value to be written, not nulljava.io.IOException - if the underlying stream throws an exceptionjava.lang.NullPointerException - if value is nullpublic static void writeDecimalNull(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigDecimal value)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic static void writeDataBigInt(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigInteger value)
throws java.io.IOException
Note: variable length data type. Must be written to the data area.
out - the output stream to write to, not null.value - the value to be written, not nulljava.io.IOException - if the underlying stream throws an exceptionpublic static void writeDataBigDecimal(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigDecimal value)
throws java.io.IOException,
java.lang.NullPointerException
Note: variable length data type. Must be written to the data area.
out - the output stream to write to, not null.value - the value to be written, not nulljava.io.IOException - if the underlying stream throws an exceptionjava.lang.NullPointerException - if value is nullpublic static void writeBoolean(com.cinnober.msgcodec.io.ByteSink out,
boolean value)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic static void writeBooleanNull(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Boolean value)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic static void writeInlineStringUTF8(com.cinnober.msgcodec.io.ByteSink out,
java.lang.String value,
int maxLength)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be written, not nullmaxLength - the maximum string length in bytes, in the range [1, 255].java.io.IOException - if the underlying stream throws an exceptionjava.lang.NullPointerException - if value is nullpublic static void writeInlineStringUTF8Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.String value,
int maxLength)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be writtenmaxLength - the maximum string length in bytes, in the range [1, 255].java.io.IOException - if the underlying stream throws an exceptionpublic static void writeDataStringUTF8(com.cinnober.msgcodec.io.ByteSink out,
java.lang.String value)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be written, not nulljava.io.IOException - if the underlying stream throws an exceptionjava.lang.NullPointerException - if value is nullpublic static void writeInlineBinary(com.cinnober.msgcodec.io.ByteSink out,
byte[] value,
int maxLength)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be written, not nullmaxLength - the maximum data length in bytes, in the range [1, 255].java.io.IOException - if the underlying stream throws an exceptionjava.lang.NullPointerException - if value is nullpublic static void writeInlineBinaryNull(com.cinnober.msgcodec.io.ByteSink out,
byte[] value,
int maxLength)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be writtenmaxLength - the maximum data length in bytes, in the range [1, 255].java.io.IOException - if the underlying stream throws an exceptionpublic static void writeDataBinary(com.cinnober.msgcodec.io.ByteSink out,
byte[] value)
throws java.io.IOException
out - the output stream to write to, not null.value - the value to be written, not nulljava.io.IOException - if the underlying stream throws an exceptionjava.lang.NullPointerException - if value is null