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(java.io.OutputStream out,
java.math.BigDecimal value)
Write a big decimal number.
|
static void |
writeBigDecimalNull(java.io.OutputStream out,
java.math.BigDecimal value)
Write a nullable big decimal number.
|
static void |
writeBigInt(java.io.OutputStream out,
java.math.BigInteger value)
Write a signed big integer.
|
static void |
writeBigIntNull(java.io.OutputStream out,
java.math.BigInteger value)
Write a nullable signed big integer.
|
static void |
writeBinary(java.io.OutputStream out,
byte[] value)
Write binary data.
|
static void |
writeBinaryNull(java.io.OutputStream out,
byte[] value)
Write nullable binary data.
|
static void |
writeBoolean(java.io.OutputStream out,
boolean value)
Write a boolean.
|
static void |
writeBooleanNull(java.io.OutputStream out,
java.lang.Boolean value)
Write a nullable boolean.
|
static void |
writeDecimal(java.io.OutputStream out,
java.math.BigDecimal value)
Write a decimal number.
|
static void |
writeDecimalNull(java.io.OutputStream out,
java.math.BigDecimal value)
Write a nullable decimal number.
|
static void |
writeFloat32(java.io.OutputStream out,
float value)
Write a 32-bit floating point number.
|
static void |
writeFloat32Null(java.io.OutputStream out,
java.lang.Float value)
Write a nullable 32-bit floating point number.
|
static void |
writeFloat64(java.io.OutputStream out,
double value)
Write a 64-bit floating point number.
|
static void |
writeFloat64Null(java.io.OutputStream out,
java.lang.Double value)
Write a nullable 64-bit floating point number.
|
static void |
writeInt16(java.io.OutputStream out,
short value)
Write a signed 16-bit integer.
|
static void |
writeInt16Null(java.io.OutputStream out,
java.lang.Short value)
Write a nullable signed 16-bit integer.
|
static void |
writeInt32(java.io.OutputStream out,
int value)
Write a signed 32-bit integer.
|
static void |
writeInt32Null(java.io.OutputStream out,
java.lang.Integer value)
Write a nullable signed 32-bit integer.
|
static void |
writeInt64(java.io.OutputStream out,
long value)
Write a signed 64-bit integer.
|
static void |
writeInt64Null(java.io.OutputStream out,
java.lang.Long value)
Write a nullable signed 64-bit integer.
|
static void |
writeInt8(java.io.OutputStream out,
byte value)
Write a signed 8-bit integer.
|
static void |
writeInt8Null(java.io.OutputStream out,
java.lang.Byte value)
Write a nullable signed 8-bit integer.
|
static void |
writeNull(java.io.OutputStream out)
Write the null (0xc0) value.
|
static void |
writeSignedVLC(java.io.OutputStream out,
java.math.BigInteger value)
Write a signed variable-length code value.
|
static void |
writeSignedVLC(java.io.OutputStream out,
long value)
Write a signed variable-length code value.
|
static void |
writeStringUTF8(java.io.OutputStream out,
java.lang.String value)
Write a unicode string.
|
static void |
writeStringUTF8Null(java.io.OutputStream out,
java.lang.String value)
Write a nullable unicode string.
|
static void |
writeUInt16(java.io.OutputStream out,
short value)
Write an unsigned 16-bit integer.
|
static void |
writeUInt16Null(java.io.OutputStream out,
java.lang.Short value)
Write a nullable unsigned 16-bit integer.
|
static void |
writeUInt32(java.io.OutputStream out,
int value)
Write an unsigned 32-bit integer.
|
static void |
writeUInt32Null(java.io.OutputStream out,
java.lang.Integer value)
Write a nullable unsigned 32-bit integer.
|
static void |
writeUInt64(java.io.OutputStream out,
long value)
Write an unsigned 64-bit integer.
|
static void |
writeUInt64Null(java.io.OutputStream out,
java.lang.Long value)
Write a nullable unsigned 64-bit integer.
|
static void |
writeUInt8(java.io.OutputStream out,
byte value)
Write an unsigned 8-bit integer.
|
static void |
writeUInt8Null(java.io.OutputStream out,
java.lang.Byte value)
Write a nullable unsigned 8-bit integer.
|
static void |
writeUnsignedVLC(java.io.OutputStream out,
long value)
Write an unsigned variable-length code value.
|
public static void writeNull(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(OutputStream, double)public static void writeFloat32Null(java.io.OutputStream 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(OutputStream, Double)public static void writeFloat64(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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 writeBoolean(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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(java.io.OutputStream 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