Top Description Fields Constructors Methods
org.jboss.marshalling

public abstract Class AbstractObjectOutput

extends SimpleDataOutput
implements ObjectOutput
Class Inheritance
All Implemented Interfaces
java.io.ObjectOutput, java.lang.AutoCloseable, java.io.DataOutput
Known Direct Subclasses
org.jboss.marshalling.cloner.SerializingCloner.StepObjectOutput, org.jboss.marshalling.AbstractMarshaller
Imports
java.io.IOException, .ObjectOutput

An abstract object output implementation.

Field Summary

Inherited from org.jboss.marshalling.SimpleDataOutput:
bufferbufferSize

Constructor Summary

AccessConstructor and Description
protected
AbstractObjectOutput(final int
the buffer size
bufferSize
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
protected abstract void
doWriteObject(Object
the object to write
obj
,
boolean
true if the instance is unshared, false if it is shared
unshared
)

Implementation of the actual object-writing method.

public void
writeObject(Object
the object to be written
obj
)

Implements java.io.ObjectOutput.writeObject.

Write an object to the underlying storage or stream.
public void
Inherited from org.jboss.marshalling.SimpleDataOutput:
closefinishflushshallowFlushstartwritewritewritewriteBooleanwriteBytewriteByteswriteCharwriteCharswriteDoublewriteFloatwriteIntwriteLongwriteShortwriteUTF

Constructor Detail

AbstractObjectOutputback to summary
protected AbstractObjectOutput(final int bufferSize)

Construct a new instance.

Parameters
bufferSize:int

the buffer size

Method Detail

doWriteObjectback to summary
protected abstract void doWriteObject(Object obj, boolean unshared) throws IOException

Implementation of the actual object-writing method.

Parameters
obj:Object

the object to write

unshared:boolean

true if the instance is unshared, false if it is shared

Exceptions
IOException:
if an I/O error occurs
writeObjectback to summary
public void writeObject(Object obj) throws IOException

Implements java.io.ObjectOutput.writeObject.

Doc from java.io.ObjectOutput.writeObject.

Write an object to the underlying storage or stream. The class that implements this interface defines how the object is written.

Parameters
obj:Object

the object to be written

Exceptions
IOException:
Any of the usual Input/Output related exceptions.
writeObjectUnsharedback to summary
public void writeObjectUnshared(Object obj) throws IOException