public abstract class AbstractObjectOutput extends SimpleDataOutput implements java.io.ObjectOutput
buffer, bufferSize
byteOutput
Modifier | Constructor and Description |
---|---|
protected |
AbstractObjectOutput(int bufferSize)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doWriteObject(java.lang.Object obj,
boolean unshared)
Implementation of the actual object-writing method.
|
void |
writeObject(java.lang.Object obj) |
void |
writeObjectUnshared(java.lang.Object obj) |
close, finish, flush, shallowFlush, start, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
protected AbstractObjectOutput(int bufferSize)
bufferSize
- the buffer sizeprotected abstract void doWriteObject(java.lang.Object obj, boolean unshared) throws java.io.IOException
obj
- the object to writeunshared
- true
if the instance is unshared, false
if it is sharedjava.io.IOException
- if an I/O error occurspublic void writeObjectUnshared(java.lang.Object obj) throws java.io.IOException
java.io.IOException
public void writeObject(java.lang.Object obj) throws java.io.IOException
writeObject
in interface java.io.ObjectOutput
java.io.IOException
Copyright © 2011 JBoss, a division of Red Hat, Inc.