public class BinaryBuilderReader extends Object implements BinaryPositionReadable
Modifier and Type | Method and Description |
---|---|
byte[] |
array() |
BinaryContext |
binaryContext() |
Object |
getValueQuickly(int pos,
int len) |
Object |
parseValue() |
int |
position() |
void |
position(int pos) |
boolean |
readBoolean() |
byte |
readByte() |
byte |
readByte(int off) |
byte |
readBytePositioned(int pos)
Read byte at the given position.
|
int |
readInt() |
int |
readInt(int off) |
int |
readIntPositioned(int pos)
Read integer at the given position.
|
int |
readLength() |
short |
readShortPositioned(int pos)
Read short at the given position.
|
String |
readString()
Reads string.
|
int |
readStringLength()
Read string length.
|
void |
registerObject(BinaryObjectBuilderImpl obj) |
BinarySchema |
schema()
Get schema of the object, starting at the given position.
|
void |
skip(int n) |
void |
skipValue() |
public BinaryContext binaryContext()
public void registerObject(BinaryObjectBuilderImpl obj)
obj
- Mutable binary object.public BinarySchema schema()
public int readInt()
public byte readByte()
public boolean readBoolean()
public byte readByte(int off)
public int readInt(int off)
off
- Offset related to pos
public byte readBytePositioned(int pos)
BinaryPositionReadable
readBytePositioned
in interface BinaryPositionReadable
pos
- Position in the source array.public short readShortPositioned(int pos)
readShortPositioned
in interface BinaryPositionReadable
pos
- Position.public int readIntPositioned(int pos)
readIntPositioned
in interface BinaryPositionReadable
pos
- Position.public int readLength()
public int readStringLength()
public String readString()
public void skipValue()
public Object getValueQuickly(int pos, int len)
pos
- Position.len
- Length.public Object parseValue()
public byte[] array()
public int position()
public void position(int pos)
pos
- New pos.public void skip(int n)
n
- Number of bytes to skip.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.0.0 Release Date : April 30 2017