public final class BBDecoder extends AbstractDecoder
| Constructor and Description |
|---|
BBDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected byte |
doGet() |
protected void |
doGet(byte[] bytes) |
protected Binary |
get(int size) |
boolean |
hasRemaining()
Tells whether there are any remaining byte(s) to be read.
|
void |
init(ByteBuffer in) |
byte[] |
readBin128()
The bin128 type consists of 16 consecutive octets of opaque binary data.
|
byte[] |
readBytes(int howManyBytes)
Reads the given number of bytes.
|
double |
readDouble()
The double type encodes a double precision 64-bit floating point number.
|
float |
readFloat()
The float type encodes a single precision 32-bit floating point number.
|
short |
readInt16()
The int16 type is a signed integral value encoded using a 16-bit two's complement representation in network byte order.
|
int |
readInt32()
The int32 type is a signed integral value encoded using a 32-bit two's complement representation in network byte order.
|
long |
readInt64()
The int64 type is a signed integral value encoded using a 64-bit two's complement representation in network byte order.
|
byte |
readInt8()
The int8 type is a signed integral value encoded using an 8-bit two's complement representation.
|
byte[] |
readRemainingBytes()
Reads the remaining bytes on the underlying buffer.
|
int |
readUint16()
The uint16 type is a 16-bit unsigned integral value encoded in network byte order.
|
long |
readUint32()
The uint32 type is a 32-bit unsigned integral value encoded in network byte order.
|
long |
readUint64()
The uint64 type is a 64-bit unsigned integral value encoded in network byte order.
|
short |
readUint8()
The uint8 type is an 8-bit unsigned integral value.
|
void |
releaseBuffer() |
get, get, readArray, readByteRanges, readDatetime, readList, readMap, readSequenceNo, readSequenceSet, readStr16, readStr8, readStruct, readStruct32, readUuid, readVbin16, readVbin32, readVbin8, ugetpublic void init(ByteBuffer in)
public void releaseBuffer()
protected byte doGet()
doGet in class AbstractDecoderprotected void doGet(byte[] bytes)
doGet in class AbstractDecoderprotected Binary get(int size)
get in class AbstractDecoderpublic boolean hasRemaining()
Decoderpublic short readUint8()
DecoderreadUint8 in interface DecoderreadUint8 in class AbstractDecoderpublic int readUint16()
DecoderreadUint16 in interface DecoderreadUint16 in class AbstractDecoderpublic long readUint32()
DecoderreadUint32 in interface DecoderreadUint32 in class AbstractDecoderpublic long readUint64()
DecoderreadUint64 in interface DecoderreadUint64 in class AbstractDecoderpublic byte[] readBin128()
Decoderpublic byte[] readBytes(int howManyBytes)
DecoderhowManyBytes - how many bytes need to be read?public double readDouble()
Decoderpublic float readFloat()
Decoderpublic short readInt16()
Decoderpublic int readInt32()
Decoderpublic byte readInt8()
Decoderpublic byte[] readRemainingBytes()
Decoderpublic long readInt64()
DecoderCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.