Class SerializingCloner.StepObjectInput
java.lang.Object
java.io.InputStream
org.jboss.marshalling.SimpleByteInput
org.jboss.marshalling.ByteInputStream
org.jboss.marshalling.SimpleDataInput
org.jboss.marshalling.AbstractObjectInput
org.jboss.marshalling.cloner.SerializingCloner.StepObjectInput
- All Implemented Interfaces:
Closeable, DataInput, ObjectInput, AutoCloseable, ByteInput, Unmarshaller
- Enclosing class:
SerializingCloner
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SerializingCloner.Stepprivate intprivate final Queue<SerializingCloner.Step> Fields inherited from class SimpleDataInput
buffer, limit, positionFields inherited from class ByteInputStream
byteInput -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDiscard the class cache.voidDiscard the instance cache.protected ObjectdoReadObject(boolean unshared) Implementation of the actual object-reading method.voidfinish()Finish reading from the current input.voidStart reading from the given input.Methods inherited from class AbstractObjectInput
readObject, readObject, readObjectUnshared, readObjectUnsharedMethods inherited from class SimpleDataInput
available, close, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readIntDirect, readLine, readLong, readLongDirect, readShort, readUnsignedByte, readUnsignedByteDirect, readUnsignedShort, readUTF, skip, skipBytesMethods inherited from class InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferToMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytesMethods inherited from interface ObjectInput
available, close, read, read, read, readObject, skipMethods inherited from interface Unmarshaller
readObject, readObjectUnshared, readObjectUnshared
-
Field Details
-
steps
-
current
-
idx
private int idx
-
-
Constructor Details
-
StepObjectInput
StepObjectInput(Queue<SerializingCloner.Step> steps) throws IOException - Throws:
IOException
-
-
Method Details
-
doReadObject
Description copied from class:AbstractObjectInputImplementation of the actual object-reading method.- Specified by:
doReadObjectin classAbstractObjectInput- Parameters:
unshared-trueif the instance should be unshared,falseif it is shared- Returns:
- the object to read
- Throws:
ClassNotFoundException- if the class for the object could not be loadedIOException- if an I/O error occurs
-
finish
Description copied from class:SimpleDataInputFinish reading from the current input. The internal buffer is discarded, not flushed.- Specified by:
finishin interfaceUnmarshaller- Overrides:
finishin classSimpleDataInput- Throws:
IOException- not thrown by this implementation, but may be overridden to be thrown if a problem occurs
-
start
Description copied from class:SimpleDataInputStart reading from the given input. The internal buffer is discarded.- Specified by:
startin interfaceUnmarshaller- Overrides:
startin classSimpleDataInput- Parameters:
byteInput- the new input from which to read- Throws:
IOException- not thrown by this implementation, but may be overridden to be thrown if a problem occurs
-
clearInstanceCache
Description copied from interface:UnmarshallerDiscard the instance cache.- Specified by:
clearInstanceCachein interfaceUnmarshaller- Throws:
IOException- if an error occurs
-
clearClassCache
Description copied from interface:UnmarshallerDiscard the class cache. Implicitly also discards the instance cache.- Specified by:
clearClassCachein interfaceUnmarshaller- Throws:
IOException- if an error occurs
-