public class BlinkOutput
extends java.lang.Object
BlinkInput| Modifier and Type | Method and Description |
|---|---|
static int |
sizeOfSignedVLC(java.math.BigInteger value)
Returns the size in bytes of a signed variable-length coded value.
|
static int |
sizeOfSignedVLC(long value)
Returns the size in bytes of a signed variable-length coded value.
|
static int |
sizeOfUnsignedVLC(long value)
Returns the size in bytes of an unsigned variable-length coded value.
|
static void |
writeBigDecimal(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigDecimal value)
Write a big decimal number.
|
static void |
writeBigDecimalNull(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigDecimal value)
Write a nullable big decimal number.
|
static void |
writeBigInt(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigInteger value)
Write a signed big integer.
|
static void |
writeBigIntNull(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigInteger value)
Write a nullable signed big integer.
|
static void |
writeBinary(com.cinnober.msgcodec.io.ByteSink out,
byte[] value)
Write binary data.
|
static void |
writeBinaryNull(com.cinnober.msgcodec.io.ByteSink out,
byte[] value)
Write nullable binary data.
|
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 |
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 |
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 |
writeNull(com.cinnober.msgcodec.io.ByteSink out)
Write the null (0xc0) value.
|
static void |
writePresenceByte(com.cinnober.msgcodec.io.ByteSink out,
boolean value)
Write a boolean.
|
static void |
writeSignedVLC(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigInteger value)
Write a signed variable-length code value.
|
static void |
writeSignedVLC(com.cinnober.msgcodec.io.ByteSink out,
long value)
Write a signed variable-length code value.
|
static void |
writeStringUTF8(com.cinnober.msgcodec.io.ByteSink out,
java.lang.String value)
Write a unicode string.
|
static void |
writeStringUTF8Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.String value)
Write a nullable unicode string.
|
static void |
writeUInt16(com.cinnober.msgcodec.io.ByteSink out,
short value)
Write an unsigned 16-bit integer.
|
static void |
writeUInt16Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Short value)
Write a nullable unsigned 16-bit integer.
|
static void |
writeUInt32(com.cinnober.msgcodec.io.ByteSink out,
int value)
Write an unsigned 32-bit integer.
|
static void |
writeUInt32Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Integer value)
Write a nullable unsigned 32-bit integer.
|
static void |
writeUInt64(com.cinnober.msgcodec.io.ByteSink out,
long value)
Write an unsigned 64-bit integer.
|
static void |
writeUInt64Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Long value)
Write a nullable unsigned 64-bit integer.
|
static void |
writeUInt8(com.cinnober.msgcodec.io.ByteSink out,
byte value)
Write an unsigned 8-bit integer.
|
static void |
writeUInt8Null(com.cinnober.msgcodec.io.ByteSink out,
java.lang.Byte value)
Write a nullable unsigned 8-bit integer.
|
static void |
writeUnsignedVLC(com.cinnober.msgcodec.io.ByteSink out,
long value)
Write an unsigned variable-length code value.
|
public static void writeNull(com.cinnober.msgcodec.io.ByteSink out)
throws java.io.IOException
out - the output stream to write to, not null.java.io.IOException - if the underlying stream throws an exceptionpublic 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 writeUInt8(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 writeUInt16(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 writeUInt32(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 writeUInt64(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 writeUInt8Null(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 writeUInt16Null(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 writeUInt32Null(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 writeUInt64Null(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 writeBigIntNull(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigInteger 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 writeBigInt(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigInteger 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 exceptionpublic 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 writeBigDecimal(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 writeBigDecimalNull(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 writePresenceByte(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 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 writeStringUTF8(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 writeStringUTF8Null(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 writtenjava.io.IOException - if the underlying stream throws an exceptionpublic static void writeBinary(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 nullpublic static void writeBinaryNull(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 writeSignedVLC(com.cinnober.msgcodec.io.ByteSink out,
java.math.BigInteger 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 exceptionpublic static void writeSignedVLC(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 writeUnsignedVLC(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 final int sizeOfSignedVLC(long value)
value - the valuepublic static final int sizeOfSignedVLC(java.math.BigInteger value)
value - the value, not null.public static final int sizeOfUnsignedVLC(long value)
value - the value