public class ObjectOutputChannel extends DataStream
address, array, FIRST_BOOT_UID, INITIAL_ARRAY_CAPACITY, limit, offset, REF_EMBEDDED, REF_NULL, REF_RECURSIVE, REF_RECURSIVE2| Constructor and Description |
|---|
ObjectOutputChannel(java.nio.channels.WritableByteChannel ch) |
ObjectOutputChannel(java.nio.channels.WritableByteChannel ch,
int bufSize) |
| Modifier and Type | Method and Description |
|---|---|
protected long |
alloc(int size) |
void |
close() |
void |
flush() |
long |
getBytesWritten() |
void |
reset() |
void |
writeObject(java.lang.Object obj) |
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, writeUTFpublic ObjectOutputChannel(java.nio.channels.WritableByteChannel ch)
public ObjectOutputChannel(java.nio.channels.WritableByteChannel ch,
int bufSize)
public long getBytesWritten()
public void writeObject(java.lang.Object obj)
throws java.io.IOException
writeObject in interface java.io.ObjectOutputwriteObject in class DataStreamjava.io.IOExceptionpublic void reset()
public void flush()
throws java.io.IOException
flush in interface java.io.ObjectOutputflush in class DataStreamjava.io.IOExceptionpublic 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.IOExceptionprotected long alloc(int size)
throws java.io.IOException
alloc in class DataStreamjava.io.IOException