public class BlinkOutputStream
extends java.io.FilterOutputStream
BlinkInputStream| Constructor and Description |
|---|
BlinkOutputStream(java.io.OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
writeBigDecimal(java.math.BigDecimal value)
Write a big decimal number.
|
void |
writeBigDecimalNull(java.math.BigDecimal value)
Write a nullable big decimal number.
|
void |
writeBigInt(java.math.BigInteger value)
Write a signed big integer.
|
void |
writeBigIntNull(java.math.BigInteger value)
Write a nullable signed big integer.
|
void |
writeBinary(byte[] value)
Write binary data.
|
void |
writeBinaryNull(byte[] value)
Write nullable binary data.
|
void |
writeBoolean(boolean value)
Write a boolean.
|
void |
writeBooleanNull(java.lang.Boolean value)
Write a nullable boolean.
|
void |
writeDecimal(java.math.BigDecimal value)
Write a decimal number.
|
void |
writeDecimalNull(java.math.BigDecimal value)
Write a nullable decimal number.
|
void |
writeFloat32(float value)
Write a 32-bit floating point number.
|
void |
writeFloat32Null(java.lang.Float value)
Write a nullable 32-bit floating point number.
|
void |
writeFloat64(double value)
Write a 64-bit floating point number.
|
void |
writeFloat64Null(java.lang.Double value)
Write a nullable 64-bit floating point number.
|
void |
writeInt16(short value)
Write a signed 16-bit integer.
|
void |
writeInt16Null(java.lang.Short value)
Write a nullable signed 16-bit integer.
|
void |
writeInt32(int value)
Write a signed 32-bit integer.
|
void |
writeInt32Null(java.lang.Integer value)
Write a nullable signed 32-bit integer.
|
void |
writeInt64(long value)
Write a signed 64-bit integer.
|
void |
writeInt64Null(java.lang.Long value)
Write a nullable signed 64-bit integer.
|
void |
writeInt8(byte value)
Write a signed 8-bit integer.
|
void |
writeInt8Null(java.lang.Byte value)
Write a nullable signed 8-bit integer.
|
void |
writeNull()
Write the null (0xc0) value.
|
void |
writeSignedBigVLC(java.math.BigInteger value)
Write a signed big variable-length code value.
|
void |
writeSignedVLC(long value)
Write a signed variable-length code value.
|
void |
writeStringUTF8(java.lang.String value)
Write a unicode string.
|
void |
writeStringUTF8Null(java.lang.String value)
Write a nullable unicode string.
|
void |
writeUInt16(short value)
Write an unsigned 16-bit integer.
|
void |
writeUInt16Null(java.lang.Short value)
Write a nullable unsigned 16-bit integer.
|
void |
writeUInt32(int value)
Write an unsigned 32-bit integer.
|
void |
writeUInt32Null(java.lang.Integer value)
Write a nullable unsigned 32-bit integer.
|
void |
writeUInt64(long value)
Write an unsigned 64-bit integer.
|
void |
writeUInt64Null(java.lang.Long value)
Write a nullable unsigned 64-bit integer.
|
void |
writeUInt8(byte value)
Write an unsigned 8-bit integer.
|
void |
writeUInt8Null(java.lang.Byte value)
Write a nullable unsigned 8-bit integer.
|
void |
writeUnsignedVLC(long value)
Write an unsigned variable-length code value.
|
public void writeNull()
throws java.io.IOException
java.io.IOException - if the underlying stream throws an exceptionpublic void writeInt8(byte value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeInt16(short value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeInt32(int value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeInt64(long value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeUInt8(byte value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeUInt16(short value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeUInt32(int value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeUInt64(long value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeInt8Null(java.lang.Byte value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeInt16Null(java.lang.Short value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeInt32Null(java.lang.Integer value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeInt64Null(java.lang.Long value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeUInt8Null(java.lang.Byte value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeUInt16Null(java.lang.Short value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeUInt32Null(java.lang.Integer value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeUInt64Null(java.lang.Long value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeBigIntNull(java.math.BigInteger value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeBigInt(java.math.BigInteger value)
throws java.io.IOException
value - the value to be written, not nulljava.io.IOException - if the underlying stream throws an exceptionpublic void writeFloat32(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.
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionwriteFloat64(double)public void writeFloat32Null(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.
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionwriteFloat64Null(Double)public void writeFloat64(double value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeFloat64Null(java.lang.Double value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeDecimal(java.math.BigDecimal value)
throws java.io.IOException,
java.lang.NullPointerException
value - the value to be written, not nulljava.io.IOException - if the underlying stream throws an exceptionjava.lang.NullPointerException - if value is nullpublic void writeDecimalNull(java.math.BigDecimal value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeBigDecimal(java.math.BigDecimal value)
throws java.io.IOException,
java.lang.NullPointerException
value - the value to be written, not nulljava.io.IOException - if the underlying stream throws an exceptionjava.lang.NullPointerException - if value is nullpublic void writeBigDecimalNull(java.math.BigDecimal value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeBoolean(boolean value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeBooleanNull(java.lang.Boolean value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeStringUTF8(java.lang.String value)
throws java.io.IOException
value - the value to be written, not nulljava.io.IOException - if the underlying stream throws an exceptionjava.lang.NullPointerException - if value is nullpublic void writeStringUTF8Null(java.lang.String value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeBinary(byte[] value)
throws java.io.IOException
value - the value to be written, not nulljava.io.IOException - if the underlying stream throws an exceptionjava.lang.NullPointerException - if value is nullpublic void writeBinaryNull(byte[] value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeSignedBigVLC(java.math.BigInteger value)
throws java.io.IOException
value - the value to be written, not nulljava.io.IOException - if the underlying stream throws an exceptionpublic void writeSignedVLC(long value)
throws java.io.IOException
value - the value to be writtenjava.io.IOException - if the underlying stream throws an exceptionpublic void writeUnsignedVLC(long value)
throws java.io.IOException
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 sizeOfUnsignedVLC(long value)
value - the value