public class NativeBlinkInput
extends java.lang.Object
Read methods for variable size data types come in two flavors:
readInlineXxx and readDataXxx for inline and data area respectively.
BlinkOutput| Modifier and Type | Method and Description |
|---|---|
static boolean |
readBoolean(com.cinnober.msgcodec.io.ByteSource in)
Read a boolean value.
|
static java.lang.Boolean |
readBooleanNull(com.cinnober.msgcodec.io.ByteSource in)
Read a nullable boolean value.
|
static java.math.BigDecimal |
readDataBigDecimal(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
Read a big decimal number.
|
static java.math.BigInteger |
readDataBigInt(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
Read a signed big integer.
|
static byte[] |
readDataBinary(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
Read binary data.
|
static java.lang.String |
readDataStringUTF8(com.cinnober.msgcodec.io.ByteSource in)
Read a unicode string.
|
static java.lang.String |
readDataStringUTF8(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
Read a unicode string.
|
static java.math.BigDecimal |
readDecimal(com.cinnober.msgcodec.io.ByteSource in)
Read a decimal number.
|
static java.math.BigDecimal |
readDecimalNull(com.cinnober.msgcodec.io.ByteSource in)
Read a nullable decimal number.
|
static float |
readFloat32(com.cinnober.msgcodec.io.ByteSource in)
Read a 32-bit floating point number.
|
static java.lang.Float |
readFloat32Null(com.cinnober.msgcodec.io.ByteSource in)
Read a nullable 32-bit floating point number.
|
static double |
readFloat64(com.cinnober.msgcodec.io.ByteSource in)
Read a 64-bit floating point number.
|
static java.lang.Double |
readFloat64Null(com.cinnober.msgcodec.io.ByteSource in)
Read a nullable 64-bit floating point number.
|
static byte[] |
readInlineBinary(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
Read a binary value.
|
static byte[] |
readInlineBinaryNull(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
Read a nullable binary value.
|
static java.lang.String |
readInlineStringUTF8(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
Read a unicode string.
|
static java.lang.String |
readInlineStringUTF8Null(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
Read a nullable unicode string.
|
static short |
readInt16(com.cinnober.msgcodec.io.ByteSource in)
Read a signed 16-bit integer.
|
static java.lang.Short |
readInt16Null(com.cinnober.msgcodec.io.ByteSource in)
Read a nullable signed 16-bit integer.
|
static int |
readInt32(com.cinnober.msgcodec.io.ByteSource in)
Read a signed 32-bit integer.
|
static java.lang.Integer |
readInt32Null(com.cinnober.msgcodec.io.ByteSource in)
Read a nullable signed 32-bit integer.
|
static long |
readInt64(com.cinnober.msgcodec.io.ByteSource in)
Read a signed 64-bit integer.
|
static java.lang.Long |
readInt64Null(com.cinnober.msgcodec.io.ByteSource in)
Read a nullable signed 64-bit integer.
|
static byte |
readInt8(com.cinnober.msgcodec.io.ByteSource in)
Read a signed 8-bit integer.
|
static java.lang.Byte |
readInt8Null(com.cinnober.msgcodec.io.ByteSource in)
Read a nullable signed 8-bit integer.
|
static short |
readUInt16(com.cinnober.msgcodec.io.ByteSource in) |
static java.lang.Short |
readUInt16Null(com.cinnober.msgcodec.io.ByteSource in) |
static int |
readUInt32(com.cinnober.msgcodec.io.ByteSource in) |
static java.lang.Integer |
readUInt32Null(com.cinnober.msgcodec.io.ByteSource in) |
static long |
readUInt64(com.cinnober.msgcodec.io.ByteSource in) |
static java.lang.Long |
readUInt64Null(com.cinnober.msgcodec.io.ByteSource in) |
static byte |
readUInt8(com.cinnober.msgcodec.io.ByteSource in) |
static java.lang.Byte |
readUInt8Null(com.cinnober.msgcodec.io.ByteSource in) |
public static byte readInt8(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static short readInt16(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static int readInt32(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static long readInt64(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static java.lang.Byte readInt8Null(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static java.lang.Short readInt16Null(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static java.lang.Integer readInt32Null(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static java.lang.Long readInt64Null(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static byte readUInt8(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.Byte readUInt8Null(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
java.io.IOExceptionpublic static short readUInt16(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.Short readUInt16Null(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
java.io.IOExceptionpublic static int readUInt32(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.Integer readUInt32Null(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
java.io.IOExceptionpublic static long readUInt64(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.Long readUInt64Null(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
java.io.IOExceptionpublic static java.math.BigInteger readDataBigInt(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
throws java.io.IOException
in - the input stream to read from, not null.maxLength - the maximum bigint length (bytes) that is allowed, or -1 for no limit.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static float readFloat32(com.cinnober.msgcodec.io.ByteSource in)
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.
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.readFloat64(ByteSource)public static java.lang.Float readFloat32Null(com.cinnober.msgcodec.io.ByteSource in)
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.
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.readFloat64(ByteSource)public static double readFloat64(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static java.lang.Double readFloat64Null(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static java.math.BigDecimal readDecimal(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static java.math.BigDecimal readDecimalNull(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static java.math.BigDecimal readDataBigDecimal(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
throws java.io.IOException
in - the input stream to read from, not null.maxLength - the maximum data length (bytes) that is allowed for the mantissa, or -1 for no limit.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static boolean readBoolean(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static java.lang.Boolean readBooleanNull(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static java.lang.String readInlineStringUTF8(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
throws java.io.IOException
in - the input stream to read from, not null.maxLength - the maximum string length (bytes), in the range [1, 255].java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static java.lang.String readInlineStringUTF8Null(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
throws java.io.IOException
in - the input stream to read from, not null.maxLength - the maximum string length (bytes), in the range [1, 255].java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static java.lang.String readDataStringUTF8(com.cinnober.msgcodec.io.ByteSource in)
throws java.io.IOException
in - the input stream to read from, not null.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static java.lang.String readDataStringUTF8(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
throws java.io.IOException
in - the input stream to read from, not null.maxLength - the maximum string length (bytes) that is allowed, or -1 for no limit.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static byte[] readInlineBinary(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
throws java.io.IOException
in - the input stream to read from, not null.maxLength - the maximum binary length (bytes), in the range [1, 255].java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static byte[] readInlineBinaryNull(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
throws java.io.IOException
in - the input stream to read from, not null.maxLength - the maximum binary length (bytes), in the range [1, 255].java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.public static byte[] readDataBinary(com.cinnober.msgcodec.io.ByteSource in,
int maxLength)
throws java.io.IOException
in - the input stream to read from, not null.maxLength - the maximum binary length (bytes) that is allowed, or -1 for no limit.java.io.IOException - if the input stream throws an exception.com.cinnober.msgcodec.DecodeException - if the value could not be parsed.