Closeable
, DataOutput
, Flushable
, ObjectOutput
, AutoCloseable
, ByteOutput
AbstractMarshaller
public abstract class AbstractObjectOutput extends SimpleDataOutput implements ObjectOutput
byteOutput
buffer, bufferSize
Modifier | Constructor | Description |
---|---|---|
protected |
AbstractObjectOutput(int bufferSize) |
Construct a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
protected abstract void |
doWriteObject(Object obj,
boolean unshared) |
Implementation of the actual object-writing method.
|
void |
writeObject(Object obj) |
|
void |
writeObjectUnshared(Object obj) |
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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(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 © 2018 JBoss by Red Hat. All rights reserved.