Class AbstractObjectOutput

    • Constructor Detail

      • AbstractObjectOutput

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

      • doWriteObject

        protected abstract void doWriteObject​(java.lang.Object obj,
                                              boolean unshared)
                                       throws java.io.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:
        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:
        writeObject in interface java.io.ObjectOutput
        Throws:
        java.io.IOException