public class BlinkInputStream
extends com.cinnober.msgcodec.util.LimitInputStream
BlinkOutputStream| Constructor and Description |
|---|
BlinkInputStream(java.io.InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
readBigDecimal()
Read a big decimal number.
|
java.math.BigDecimal |
readBigDecimalNull()
Read a nullable big decimal number.
|
java.math.BigInteger |
readBigInt()
Read a signed big integer.
|
java.math.BigInteger |
readBigIntNull()
Read a nullable signed big integer.
|
byte[] |
readBinary()
Read a binary value.
|
byte[] |
readBinary(int maxLength)
Read a binary value.
|
byte[] |
readBinaryNull()
Read a nullable binary value.
|
byte[] |
readBinaryNull(int maxLength)
Read a nullable binary value.
|
boolean |
readBoolean()
Read a boolean value.
|
java.lang.Boolean |
readBooleanNull()
Read a nullable boolean value.
|
java.math.BigDecimal |
readDecimal()
Read a decimal number.
|
java.math.BigDecimal |
readDecimalNull()
Read a nullable decimal number.
|
float |
readFloat32()
Read a 32-bit floating point number.
|
java.lang.Float |
readFloat32Null()
Read a nullable 32-bit floating point number.
|
double |
readFloat64()
Read a 64-bit floating point number.
|
java.lang.Double |
readFloat64Null()
Read a nullable 64-bit floating point number.
|
short |
readInt16()
Read a signed 16-bit integer.
|
java.lang.Short |
readInt16Null()
Read a nullable signed 16-bit integer.
|
int |
readInt32()
Read a signed 32-bit integer.
|
java.lang.Integer |
readInt32Null()
Read a nullable signed 32-bit integer.
|
long |
readInt64()
Read a signed 64-bit integer.
|
java.lang.Long |
readInt64Null()
Read a nullable signed 64-bit integer.
|
byte |
readInt8()
Read a signed 8-bit integer.
|
java.lang.Byte |
readInt8Null()
Read a nullable signed 8-bit integer.
|
java.math.BigInteger |
readSignedBigVLC()
Read a nullable unsigned big variable-length code value.
|
java.math.BigInteger |
readSignedBigVLCNull()
Read a nullable unsigned big variable-length code value.
|
long |
readSignedVLC()
Read a signed variable-length code value.
|
java.lang.Long |
readSignedVLCNull()
Read a nullable signed variable-length code value.
|
java.lang.String |
readStringUTF8()
Read a unicode string.
|
java.lang.String |
readStringUTF8(int maxLength)
Read a unicode string.
|
java.lang.String |
readStringUTF8Null()
Read a nullable unicode string.
|
java.lang.String |
readStringUTF8Null(int maxLength)
Read a nullable unicode string.
|
short |
readUInt16()
Read an unsigned 16-bit integer.
|
java.lang.Short |
readUInt16Null()
Read a nullable unsigned 16-bit integer.
|
int |
readUInt32()
Read an unsigned 32-bit integer.
|
java.lang.Integer |
readUInt32Null()
Read a nullable unsigned 32-bit integer.
|
long |
readUInt64()
Read an unsigned 64-bit integer.
|
java.lang.Long |
readUInt64Null()
Read a nullable unsigned 64-bit integer.
|
byte |
readUInt8()
Read an unsigned 8-bit integer.
|
java.lang.Byte |
readUInt8Null()
Read a nullable unsigned 8-bit integer.
|
long |
readUnsignedVLC()
Read a signed variable-length code value.
|
java.lang.Long |
readUnsignedVLCNull()
Read a nullable unsigned variable-length code value.
|
void |
setMaxBinarySize(int maxBinarySize)
The maximum size of binary data that is accepted.
|
public void setMaxBinarySize(int maxBinarySize)
Default value is 10 MB (10 048 576 bytes)
maxBinarySize - the limit in bytes, or -1 for no limit.public byte readInt8()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public short readInt16()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public int readInt32()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public long readInt64()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public byte readUInt8()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public short readUInt16()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public int readUInt32()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public long readUInt64()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.Byte readInt8Null()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.Short readInt16Null()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.Integer readInt32Null()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.Long readInt64Null()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.Byte readUInt8Null()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.Short readUInt16Null()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.Integer readUInt32Null()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.Long readUInt64Null()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.math.BigInteger readBigInt()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.math.BigInteger readBigIntNull()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public float readFloat32()
throws java.io.IOException
Since the Blink protocol does not support 32-bit floating point numbers, the value is read as a 64-bit floating point number.
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.readFloat64()public java.lang.Float readFloat32Null()
throws java.io.IOException
Since the Blink protocol does not support 32-bit floating point numbers, the value is read as a 64-bit floating point number.
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.readFloat64()public double readFloat64()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.Double readFloat64Null()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.math.BigDecimal readDecimal()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.math.BigDecimal readDecimalNull()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.math.BigDecimal readBigDecimal()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.math.BigDecimal readBigDecimalNull()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public boolean readBoolean()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.Boolean readBooleanNull()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.String readStringUTF8()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.String readStringUTF8Null()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.String readStringUTF8(int maxLength)
throws java.io.IOException
maxLength - the maximum string length (bytes) that is allowed, or -1 for no limit.java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.String readStringUTF8Null(int maxLength)
throws java.io.IOException
maxLength - the maximum string length (characters) that is allowed, or -1 for no limit.java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public byte[] readBinary()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public byte[] readBinaryNull()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public byte[] readBinary(int maxLength)
throws java.io.IOException
maxLength - the maximum binary length (bytes) that is allowed, or -1 for no limit.java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public byte[] readBinaryNull(int maxLength)
throws java.io.IOException
maxLength - the maximum binary length (bytes) that is allowed, or -1 for no limit.java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.Long readSignedVLCNull()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public long readSignedVLC()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.math.BigInteger readSignedBigVLC()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.math.BigInteger readSignedBigVLCNull()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public java.lang.Long readUnsignedVLCNull()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.public long readUnsignedVLC()
throws java.io.IOException
java.io.IOException - if the value could not be parsed, or if the underlying stream throws an exception.