Interface BinaryRawWriterEx
-
- All Superinterfaces:
AutoCloseable,BinaryRawWriter
- All Known Implementing Classes:
BinaryWriterExImpl
public interface BinaryRawWriterEx extends BinaryRawWriter, AutoCloseable
Extended writer interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Cleans resources.BinaryOutputStreamout()intreserveInt()Reserve a room for an integer.voidwriteInt(int pos, int val)Write int value at the specific position.voidwriteObjectDetached(@Nullable Object obj)-
Methods inherited from interface org.apache.ignite.binary.BinaryRawWriter
writeBoolean, writeBooleanArray, writeByte, writeByteArray, writeChar, writeCharArray, writeCollection, writeDate, writeDateArray, writeDecimal, writeDecimalArray, writeDouble, writeDoubleArray, writeEnum, writeEnumArray, writeFloat, writeFloatArray, writeInt, writeIntArray, writeLong, writeLongArray, writeMap, writeObject, writeObjectArray, writeShort, writeShortArray, writeString, writeStringArray, writeTime, writeTimeArray, writeTimestamp, writeTimestampArray, writeUuid, writeUuidArray
-
-
-
-
Method Detail
-
writeObjectDetached
void writeObjectDetached(@Nullable @Nullable Object obj) throws BinaryObjectException- Parameters:
obj- Object to write.- Throws:
BinaryObjectException- In case of error.
-
out
BinaryOutputStream out()
- Returns:
- Output stream.
-
close
void close()
Cleans resources.- Specified by:
closein interfaceAutoCloseable
-
reserveInt
int reserveInt()
Reserve a room for an integer.- Returns:
- Position in the stream where value is to be written.
-
writeInt
void writeInt(int pos, int val) throws BinaryObjectExceptionWrite int value at the specific position.- Parameters:
pos- Position.val- Value.- Throws:
BinaryObjectException- If failed.
-
-