Package one.nio.serial
Class ObjectOutputChannel
java.lang.Object
one.nio.serial.DataStream
one.nio.serial.ObjectOutputChannel
- All Implemented Interfaces:
DataInput,DataOutput,ObjectInput,ObjectOutput,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate final WritableByteChannelprivate final SerializationContextprivate long[]private intFields inherited from class one.nio.serial.DataStream
address, array, FIRST_BOOT_UID, limit, offset, REF_EMBEDDED, REF_NULL, REF_RECURSIVE, REF_RECURSIVE2 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanaddSerializer(long uid) protected longalloc(int size) voidclose()voidflush()longprivate voidgrow(int size) voidreset()private voidvoidwriteObject(Object obj) Methods inherited from class one.nio.serial.DataStream
address, array, available, byteBuffer, count, newScope, read, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readObject, readRef, readShort, readTo, readUnsignedByte, readUnsignedShort, readUTF, register, skip, skipBytes, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeFrom, writeInt, writeLong, writeShort, writeUTF
-
Field Details
-
ch
-
context
-
serializerSet
private long[] serializerSet -
serializerSetSize
private int serializerSetSize -
bytesWritten
private long bytesWritten
-
-
Constructor Details
-
ObjectOutputChannel
-
ObjectOutputChannel
-
-
Method Details
-
getBytesWritten
public long getBytesWritten() -
writeObject
- Specified by:
writeObjectin interfaceObjectOutput- Overrides:
writeObjectin classDataStream- Throws:
IOException
-
reset
public void reset() -
flush
- Specified by:
flushin interfaceObjectOutput- Overrides:
flushin classDataStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceObjectInput- Specified by:
closein interfaceObjectOutput- Overrides:
closein classDataStream- Throws:
IOException
-
alloc
- Overrides:
allocin classDataStream- Throws:
IOException
-
grow
- Throws:
IOException
-
addSerializer
private boolean addSerializer(long uid) -
resizeSerializerSet
private void resizeSerializerSet()
-