JBoss Marshalling 1.3.0.CR9

org.jboss.marshalling
Class AbstractObjectOutput

java.lang.Object
  extended by java.io.OutputStream
      extended by org.jboss.marshalling.SimpleByteOutput
          extended by org.jboss.marshalling.ByteOutputStream
              extended by org.jboss.marshalling.SimpleDataOutput
                  extended by org.jboss.marshalling.AbstractObjectOutput
All Implemented Interfaces:
Closeable, DataOutput, Flushable, ObjectOutput, ByteOutput
Direct Known Subclasses:
AbstractMarshaller

public abstract class AbstractObjectOutput
extends SimpleDataOutput
implements 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
protected AbstractObjectOutput(int bufferSize)
          Construct a new instance.
 
Method Summary
protected abstract  void doWriteObject(Object obj, boolean unshared)
          Implementation of the actual object-writing method.
 void writeObject(Object obj)
          
 void writeObjectUnshared(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
 
Methods inherited from interface java.io.ObjectOutput
close, flush, write, write, write
 
Methods inherited from interface java.io.DataOutput
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 

Constructor Detail

AbstractObjectOutput

protected AbstractObjectOutput(int bufferSize)
Construct a new instance.

Parameters:
bufferSize - the buffer size
Method Detail

doWriteObject

protected abstract void doWriteObject(Object obj,
                                      boolean unshared)
                               throws IOException
Implementation of the actual object-writing method.

Parameters:
obj - the object to write
unshared - true if the instance is unshared, false if it is shared
Throws:
IOException - if an I/O error occurs

writeObjectUnshared

public void writeObjectUnshared(Object obj)
                         throws IOException

Throws:
IOException

writeObject

public void writeObject(Object obj)
                 throws IOException

Specified by:
writeObject in interface ObjectOutput
Throws:
IOException

JBoss Marshalling 1.3.0.CR9

Copyright © 2011 JBoss, a division of Red Hat, Inc.