public class ObjectInputChannel extends DataStream
address, array, FIRST_BOOT_UID, INITIAL_ARRAY_CAPACITY, limit, offset, REF_EMBEDDED, REF_NULL, REF_RECURSIVE, REF_RECURSIVE2| Constructor and Description |
|---|
ObjectInputChannel(java.nio.channels.ReadableByteChannel ch) |
ObjectInputChannel(java.nio.channels.ReadableByteChannel ch,
int bufSize) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
alloc(int size) |
void |
close() |
long |
getBytesRead() |
java.lang.Object |
readObject() |
void |
register(java.lang.Object obj) |
void |
reset() |
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, writeUTFpublic ObjectInputChannel(java.nio.channels.ReadableByteChannel ch)
public ObjectInputChannel(java.nio.channels.ReadableByteChannel ch,
int bufSize)
public long getBytesRead()
public java.lang.Object readObject()
throws java.io.IOException,
java.lang.ClassNotFoundException
readObject in interface java.io.ObjectInputreadObject in class DataStreamjava.io.IOExceptionjava.lang.ClassNotFoundExceptionpublic void reset()
public void close()
throws java.io.IOException
close in interface java.io.ObjectInputclose in interface java.io.ObjectOutputclose in interface java.lang.AutoCloseableclose in class DataStreamjava.io.IOExceptionpublic void register(java.lang.Object obj)
register in class DataStreamprotected long alloc(int size)
throws java.io.IOException
alloc in class DataStreamjava.io.IOException