Class SerializingCloner.StepObjectInput

    • Constructor Detail

      • StepObjectInput

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

      • doReadObject

        protected java.lang.Object doReadObject​(boolean unshared)
                                         throws java.lang.ClassNotFoundException,
                                                java.io.IOException
        Description copied from class: AbstractObjectInput
        Implementation of the actual object-reading method.
        Specified by:
        doReadObject in class AbstractObjectInput
        Parameters:
        unshared - true if the instance should be unshared, false if it is shared
        Returns:
        the object to read
        Throws:
        java.lang.ClassNotFoundException - if the class for the object could not be loaded
        java.io.IOException - if an I/O error occurs
      • finish

        public void finish()
                    throws java.io.IOException
        Description copied from class: SimpleDataInput
        Finish reading from the current input. The internal buffer is discarded, not flushed.
        Specified by:
        finish in interface Unmarshaller
        Overrides:
        finish in class SimpleDataInput
        Throws:
        java.io.IOException - not thrown by this implementation, but may be overridden to be thrown if a problem occurs
      • start

        public void start​(ByteInput byteInput)
                   throws java.io.IOException
        Description copied from class: SimpleDataInput
        Start reading from the given input. The internal buffer is discarded.
        Specified by:
        start in interface Unmarshaller
        Overrides:
        start in class SimpleDataInput
        Parameters:
        byteInput - the new input from which to read
        Throws:
        java.io.IOException - not thrown by this implementation, but may be overridden to be thrown if a problem occurs
      • clearInstanceCache

        public void clearInstanceCache()
                                throws java.io.IOException
        Description copied from interface: Unmarshaller
        Discard the instance cache.
        Specified by:
        clearInstanceCache in interface Unmarshaller
        Throws:
        java.io.IOException - if an error occurs
      • clearClassCache

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