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, readContent, readDatetime, readList, readMap, readSequenceNo, readSequenceSet, readStr16, readStr8, readStruct, readStruct32, readUuid, readVbin16, readVbin32, readVbin8, uget
public void init(ByteBuffer in)
public void releaseBuffer()
protected byte doGet()
doGet
in class AbstractDecoder
protected void doGet(byte[] bytes)
doGet
in class AbstractDecoder
protected Binary get(int size)
get
in class AbstractDecoder
public boolean hasRemaining()
Decoder
public short readUint8()
Decoder
readUint8
in interface Decoder
readUint8
in class AbstractDecoder
public int readUint16()
Decoder
readUint16
in interface Decoder
readUint16
in class AbstractDecoder
public long readUint32()
Decoder
readUint32
in interface Decoder
readUint32
in class AbstractDecoder
public long readUint64()
Decoder
readUint64
in interface Decoder
readUint64
in class AbstractDecoder
public byte[] readBin128()
Decoder
public byte[] readBytes(int howManyBytes)
Decoder
howManyBytes
- how many bytes need to be read?public double readDouble()
Decoder
public float readFloat()
Decoder
public short readInt16()
Decoder
public int readInt32()
Decoder
public byte readInt8()
Decoder
public byte[] readRemainingBytes()
Decoder
public long readInt64()
Decoder
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.