Package org.jboss.marshalling
Class AbstractObjectOutput
- java.lang.Object
-
- java.io.OutputStream
-
- org.jboss.marshalling.SimpleByteOutput
-
- org.jboss.marshalling.ByteOutputStream
-
- org.jboss.marshalling.SimpleDataOutput
-
- org.jboss.marshalling.AbstractObjectOutput
-
- All Implemented Interfaces:
java.io.Closeable,java.io.DataOutput,java.io.Flushable,java.io.ObjectOutput,java.lang.AutoCloseable,ByteOutput
- Direct Known Subclasses:
AbstractMarshaller,SerializingCloner.StepObjectOutput
public abstract class AbstractObjectOutput extends SimpleDataOutput implements java.io.ObjectOutput
An abstract object output implementation.
-
-
Field Summary
-
Fields inherited from class org.jboss.marshalling.SimpleDataOutput
buffer, bufferSize
-
Fields inherited from class org.jboss.marshalling.ByteOutputStream
byteOutput
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractObjectOutput(int bufferSize)Construct a new instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoWriteObject(java.lang.Object obj, boolean unshared)Implementation of the actual object-writing method.voidwriteObject(java.lang.Object obj)voidwriteObjectUnshared(java.lang.Object obj)-
Methods inherited from class org.jboss.marshalling.SimpleDataOutput
close, finish, flush, shallowFlush, start, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
doWriteObject
protected abstract void doWriteObject(java.lang.Object obj, boolean unshared) throws java.io.IOExceptionImplementation of the actual object-writing method.- Parameters:
obj- the object to writeunshared-trueif the instance is unshared,falseif it is shared- Throws:
java.io.IOException- if an I/O error occurs
-
writeObjectUnshared
public void writeObjectUnshared(java.lang.Object obj) throws java.io.IOException- Throws:
java.io.IOException
-
writeObject
public void writeObject(java.lang.Object obj) throws java.io.IOException- Specified by:
writeObjectin interfacejava.io.ObjectOutput- Throws:
java.io.IOException
-
-