public abstract class PortableAbstractOutputStream extends PortableAbstractStream implements PortableOutputStream
BOOLEAN_ARR_OFF, BYTE_ARR_OFF, BYTE_ONE, BYTE_ZERO, CHAR_ARR_OFF, DOUBLE_ARR_OFF, FLOAT_ARR_OFF, INT_ARR_OFF, LITTLE_ENDIAN, LONG_ARR_OFF, pos, SHORT_ARR_OFF, UNSAFE| Constructor and Description |
|---|
PortableAbstractOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
capacity(int curCap,
int reqCap)
Calculate new capacity.
|
protected abstract void |
copyAndShift(Object src,
long off,
int len)
Copy source object to the stream shift position afterwards.
|
protected abstract void |
ensureCapacity(int cnt)
Ensure capacity.
|
long |
offheapPointer() |
void |
position(int pos) |
void |
write(byte[] arr,
int off,
int len)
Write byte array.
|
void |
write(long addr,
int cnt)
Write data from unmanaged memory.
|
void |
writeBoolean(boolean val)
Write boolean value.
|
void |
writeBooleanArray(boolean[] val)
Write boolean array.
|
void |
writeByte(byte val)
Write byte value.
|
protected abstract void |
writeByteAndShift(byte val)
Write next byte to the stream.
|
void |
writeByteArray(byte[] val)
Write byte array.
|
void |
writeChar(char val)
Write char value.
|
void |
writeCharArray(char[] val)
Write char array.
|
protected abstract void |
writeCharFast(char val)
Write char value (fast path).
|
void |
writeDouble(double val)
Write double value.
|
void |
writeDoubleArray(double[] val)
Write double array.
|
void |
writeFloat(float val)
Write float value.
|
void |
writeFloatArray(float[] val)
Write float array.
|
void |
writeInt(int val)
Write int value.
|
void |
writeInt(int pos,
int val)
Write int value to the given position.
|
void |
writeIntArray(int[] val)
Write int array.
|
protected abstract void |
writeIntFast(int val)
Write int value (fast path).
|
protected abstract void |
writeIntPositioned(int pos,
int val)
Write int value to the given position.
|
void |
writeLong(long val)
Write long value.
|
void |
writeLongArray(long[] val)
Write long array.
|
protected abstract void |
writeLongFast(long val)
Write long value (fast path).
|
void |
writeShort(short val)
Write short value.
|
void |
writeShortArray(short[] val)
Write short array.
|
protected abstract void |
writeShortFast(short val)
Write short value (fast path).
|
position, shiftclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosearray, arrayCopy, hasArray, positionpublic void writeByte(byte val)
writeByte in interface PortableOutputStreamval - Byte value.public void writeByteArray(byte[] val)
writeByteArray in interface PortableOutputStreamval - Byte array.public void writeBoolean(boolean val)
writeBoolean in interface PortableOutputStreamval - Boolean value.public void writeBooleanArray(boolean[] val)
writeBooleanArray in interface PortableOutputStreamval - Boolean array.public void writeShort(short val)
writeShort in interface PortableOutputStreamval - Short value.public void writeShortArray(short[] val)
writeShortArray in interface PortableOutputStreamval - Short array.public void writeChar(char val)
writeChar in interface PortableOutputStreamval - Char value.public void writeCharArray(char[] val)
writeCharArray in interface PortableOutputStreamval - Char array.public void writeInt(int val)
writeInt in interface PortableOutputStreamval - Int value.public void writeInt(int pos,
int val)
writeInt in interface PortableOutputStreampos - Position.val - Value.public void writeIntArray(int[] val)
writeIntArray in interface PortableOutputStreamval - Int array.public void writeFloat(float val)
writeFloat in interface PortableOutputStreamval - Float value.public void writeFloatArray(float[] val)
writeFloatArray in interface PortableOutputStreamval - Float array.public void writeLong(long val)
writeLong in interface PortableOutputStreamval - Long value.public void writeLongArray(long[] val)
writeLongArray in interface PortableOutputStreamval - Long array.public void writeDouble(double val)
writeDouble in interface PortableOutputStreamval - Double value.public void writeDoubleArray(double[] val)
writeDoubleArray in interface PortableOutputStreamval - Double array.public void write(byte[] arr,
int off,
int len)
write in interface PortableOutputStreamarr - Array.off - Offset.len - Length.public void write(long addr,
int cnt)
write in interface PortableOutputStreamaddr - Address.cnt - Count.public void position(int pos)
position in interface PortableStreampos - Position.public long offheapPointer()
offheapPointer in interface PortableStream0.protected static int capacity(int curCap,
int reqCap)
curCap - Current capacity.reqCap - Required capacity.protected abstract void writeByteAndShift(byte val)
val - Value.protected abstract void copyAndShift(Object src, long off, int len)
src - Source.off - Offset.len - Length.protected abstract void writeShortFast(short val)
val - Short value.protected abstract void writeCharFast(char val)
val - Char value.protected abstract void writeIntFast(int val)
val - Int value.protected abstract void writeLongFast(long val)
val - Long value.protected abstract void writeIntPositioned(int pos,
int val)
pos - Position.val - Value.protected abstract void ensureCapacity(int cnt)
cnt - Required byte count.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015