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 pospublic byte readBytePositioned(int pos)
BinaryPositionReadablereadBytePositioned in interface BinaryPositionReadablepos - Position in the source array.public short readShortPositioned(int pos)
readShortPositioned in interface BinaryPositionReadablepos - Position.public int readIntPositioned(int pos)
readIntPositioned in interface BinaryPositionReadablepos - 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.5.0 Release Date : May 23 2018