Class AbstractObjectOutput

All Implemented Interfaces:
Closeable, DataOutput, Flushable, ObjectOutput, AutoCloseable, ByteOutput
Direct Known Subclasses:
AbstractMarshaller, SerializingCloner.StepObjectOutput

public abstract class AbstractObjectOutput extends SimpleDataOutput implements ObjectOutput
An abstract object output implementation.
  • Constructor Details

    • AbstractObjectOutput

      protected AbstractObjectOutput(int bufferSize)
      Construct a new instance.
      Parameters:
      bufferSize - the buffer size
  • Method Details

    • 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