Package one.nio.serial
Class ObjectInputChannel
java.lang.Object
one.nio.serial.DataStream
one.nio.serial.ObjectInputChannel
- All Implemented Interfaces:
DataInput,DataOutput,ObjectInput,ObjectOutput,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate intprivate final ReadableByteChannelprivate Object[]private intprivate static final Object[]private static final 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
Methods inherited from class one.nio.serial.DataStream
address, array, available, byteBuffer, count, flush, newScope, read, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readRef, readShort, readTo, readUnsignedByte, readUnsignedShort, readUTF, skip, skipBytes, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeFrom, writeInt, writeLong, writeObject, writeShort, writeUTF
-
Field Details
-
EMPTY_CONTEXT
-
INITIAL_CAPACITY
private static final int INITIAL_CAPACITY- See Also:
-
ch
-
capacity
private int capacity -
context
-
contextSize
private int contextSize -
bytesRead
private long bytesRead
-
-
Constructor Details
-
ObjectInputChannel
-
ObjectInputChannel
-
-
Method Details
-
getBytesRead
public long getBytesRead() -
readObject
- Specified by:
readObjectin interfaceObjectInput- Overrides:
readObjectin classDataStream- Throws:
IOExceptionClassNotFoundException
-
reset
public void reset() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceObjectInput- Specified by:
closein interfaceObjectOutput- Overrides:
closein classDataStream- Throws:
IOException
-
register
- Overrides:
registerin classDataStream
-
alloc
- Overrides:
allocin classDataStream- Throws:
IOException
-
fetch
- Throws:
IOException
-