public abstract class AbstractObjectOutput extends SimpleDataOutput implements ObjectOutput
buffer, bufferSizebyteOutput| Modifier | Constructor and Description |
|---|---|
protected |
AbstractObjectOutput(int bufferSize)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
doWriteObject(Object obj,
boolean unshared)
Implementation of the actual object-writing method.
|
void |
writeObject(Object obj) |
void |
writeObjectUnshared(Object obj) |
close, finish, flush, shallowFlush, start, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFprotected AbstractObjectOutput(int bufferSize)
bufferSize - the buffer sizeprotected abstract void doWriteObject(Object obj, boolean unshared) throws IOException
obj - the object to writeunshared - true if the instance is unshared, false if it is sharedIOException - if an I/O error occurspublic void writeObjectUnshared(Object obj) throws IOException
IOExceptionpublic void writeObject(Object obj) throws IOException
writeObject in interface ObjectOutputIOExceptionCopyright © 2012 JBoss by Red Hat. All Rights Reserved.