public abstract class AbstractObjectOutput extends SimpleDataOutput implements 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(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, writeUTF
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
protected 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
IOException
public void writeObject(Object obj) throws IOException
writeObject
in interface ObjectOutput
IOException
Copyright © 2019 JBoss by Red Hat. All rights reserved.