public abstract class BinaryAbstractInputStream extends BinaryAbstractStream implements BinaryInputStream
| Modifier and Type | Field and Description |
|---|---|
protected int |
len
Length of data inside array.
|
BYTE_ONE, BYTE_ZERO, pos| Constructor and Description |
|---|
BinaryAbstractInputStream() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
copyAndShift(Object target,
long off,
int len)
Copy data to target object shift position afterwards.
|
protected void |
ensureEnoughData(int cnt)
Ensure that there is enough data.
|
long |
offheapPointer() |
void |
position(int pos) |
long |
rawOffheapPointer() |
int |
read(byte[] arr,
int off,
int len)
Reads
cnt of bytes into byte array. |
boolean |
readBoolean()
Read boolean value.
|
boolean[] |
readBooleanArray(int cnt)
Read boolean array.
|
byte |
readByte()
Read byte value.
|
protected abstract byte |
readByteAndShift()
Read next byte from the stream and perform shift.
|
byte[] |
readByteArray(int cnt)
Read byte array.
|
byte |
readBytePositioned(int pos)
Read byte at the given position.
|
protected abstract byte |
readBytePositioned0(int pos)
Internal routine for positioned byte value read.
|
char |
readChar()
Read char value.
|
char[] |
readCharArray(int cnt)
Read char array.
|
protected abstract char |
readCharFast()
Read char value (fast path).
|
double |
readDouble()
Read double value.
|
double[] |
readDoubleArray(int cnt)
Read double array.
|
float |
readFloat()
Read float value.
|
float[] |
readFloatArray(int cnt)
Read float array.
|
int |
readInt()
Read int value.
|
int[] |
readIntArray(int cnt)
Read int array.
|
protected abstract int |
readIntFast()
Read int value (fast path).
|
int |
readIntPositioned(int pos)
Read integer at the given position.
|
protected abstract int |
readIntPositioned0(int pos)
Internal routine for positioned int value read.
|
long |
readLong()
Read long value.
|
long[] |
readLongArray(int cnt)
Read long array.
|
protected abstract long |
readLongFast()
Read long value (fast path).
|
short |
readShort()
Read short value.
|
short[] |
readShortArray(int cnt)
Read short array.
|
protected abstract short |
readShortFast()
Read short value (fast path).
|
short |
readShortPositioned(int pos)
Read short at the given position.
|
protected abstract short |
readShortPositioned0(int pos)
Internal routine for positioned short value read.
|
position, shiftclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitremainingpublic byte readByte()
readByte in interface BinaryInputStreampublic byte[] readByteArray(int cnt)
readByteArray in interface BinaryInputStreamcnt - Expected item count.public boolean readBoolean()
readBoolean in interface BinaryInputStreampublic boolean[] readBooleanArray(int cnt)
readBooleanArray in interface BinaryInputStreamcnt - Expected item count.public short readShort()
readShort in interface BinaryInputStreampublic short[] readShortArray(int cnt)
readShortArray in interface BinaryInputStreamcnt - Expected item count.public char readChar()
readChar in interface BinaryInputStreampublic char[] readCharArray(int cnt)
readCharArray in interface BinaryInputStreamcnt - Expected item count.public int readInt()
readInt in interface BinaryInputStreampublic int[] readIntArray(int cnt)
readIntArray in interface BinaryInputStreamcnt - Expected item count.public byte readBytePositioned(int pos)
readBytePositioned in interface BinaryPositionReadablepos - Position.public short readShortPositioned(int pos)
readShortPositioned in interface BinaryPositionReadablepos - Position.public int readIntPositioned(int pos)
readIntPositioned in interface BinaryPositionReadablepos - Position.public float readFloat()
readFloat in interface BinaryInputStreampublic float[] readFloatArray(int cnt)
readFloatArray in interface BinaryInputStreamcnt - Expected item count.public long readLong()
readLong in interface BinaryInputStreampublic long[] readLongArray(int cnt)
readLongArray in interface BinaryInputStreamcnt - Expected item count.public double readDouble()
readDouble in interface BinaryInputStreampublic double[] readDoubleArray(int cnt)
readDoubleArray in interface BinaryInputStreamcnt - Expected item count.public int read(byte[] arr,
int off,
int len)
cnt of bytes into byte array.read in interface BinaryInputStreamarr - Expected item count.off - offsetlen - number of bytes to read.public void position(int pos)
position in interface BinaryStreampos - Position.public long offheapPointer()
offheapPointer in interface BinaryStream0.public long rawOffheapPointer()
rawOffheapPointer in interface BinaryStream0.protected void ensureEnoughData(int cnt)
cnt - Length.protected abstract byte readByteAndShift()
protected abstract void copyAndShift(Object target, long off, int len)
target - Target.off - Offset.len - Length.protected abstract short readShortFast()
protected abstract char readCharFast()
protected abstract int readIntFast()
protected abstract long readLongFast()
protected abstract byte readBytePositioned0(int pos)
pos - Position.protected abstract short readShortPositioned0(int pos)
pos - Position.protected abstract int readIntPositioned0(int pos)
pos - Position.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016