Class SerializingCloner.StepObjectOutput

    • Field Detail

      • byteArrayOutputStream

        private final java.io.ByteArrayOutputStream byteArrayOutputStream
    • Constructor Detail

      • StepObjectOutput

        StepObjectOutput​(java.util.Queue<SerializingCloner.Step> steps)
                  throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • doWriteObject

        protected void doWriteObject​(java.lang.Object obj,
                                     boolean unshared)
                              throws java.io.IOException
        Description copied from class: AbstractObjectOutput
        Implementation of the actual object-writing method.
        Specified by:
        doWriteObject in class AbstractObjectOutput
        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
      • clearInstanceCache

        public void clearInstanceCache()
                                throws java.io.IOException
        Description copied from interface: Marshaller
        Discard the instance cache. May also discard the class cache in implementations that do not support separated class and instance caches.
        Specified by:
        clearInstanceCache in interface Marshaller
        Throws:
        java.io.IOException - if an error occurs
      • clearClassCache

        public void clearClassCache()
                             throws java.io.IOException
        Description copied from interface: Marshaller
        Discard the class cache. Implicitly also discards the instance cache.
        Specified by:
        clearClassCache in interface Marshaller
        Throws:
        java.io.IOException - if an error occurs
      • start

        public void start​(ByteOutput byteOutput)
                   throws java.io.IOException
        Description copied from class: SimpleDataOutput
        Begin writing to a stream.
        Specified by:
        start in interface Marshaller
        Overrides:
        start in class SimpleDataOutput
        Parameters:
        byteOutput - the new stream
        Throws:
        java.io.IOException - if an error occurs
      • doFinish

        void doFinish()
               throws java.io.IOException
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Description copied from class: SimpleDataOutput
        Specified by:
        flush in interface java.io.Flushable
        Specified by:
        flush in interface java.io.ObjectOutput
        Overrides:
        flush in class SimpleDataOutput
        Throws:
        java.io.IOException