Package org.jboss.marshalling.cloner
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.Step
private int
private final Queue<SerializingCloner.Step>
Fields inherited from class org.jboss.marshalling.SimpleDataInput
buffer, limit, position
Fields inherited from class org.jboss.marshalling.ByteInputStream
byteInput
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Discard the class cache.void
Discard the instance cache.protected Object
doReadObject
(boolean unshared) Implementation of the actual object-reading method.void
finish()
Finish reading from the current input.void
Start reading from the given input.Methods inherited from class org.jboss.marshalling.AbstractObjectInput
readObject, readObject, readObjectUnshared, readObjectUnshared
Methods inherited from class org.jboss.marshalling.SimpleDataInput
available, close, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readIntDirect, readLine, readLong, readLongDirect, readShort, readUnsignedByte, readUnsignedByteDirect, readUnsignedShort, readUTF, skip, skipBytes
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
Methods inherited from interface java.io.ObjectInput
available, close, read, read, read, readObject, skip
Methods inherited from interface org.jboss.marshalling.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:AbstractObjectInput
Implementation of the actual object-reading method.- Specified by:
doReadObject
in classAbstractObjectInput
- Parameters:
unshared
-true
if the instance should be unshared,false
if 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:SimpleDataInput
Finish reading from the current input. The internal buffer is discarded, not flushed.- Specified by:
finish
in interfaceUnmarshaller
- Overrides:
finish
in classSimpleDataInput
- Throws:
IOException
- not thrown by this implementation, but may be overridden to be thrown if a problem occurs
-
start
Description copied from class:SimpleDataInput
Start reading from the given input. The internal buffer is discarded.- Specified by:
start
in interfaceUnmarshaller
- Overrides:
start
in 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:Unmarshaller
Discard the instance cache.- Specified by:
clearInstanceCache
in interfaceUnmarshaller
- Throws:
IOException
- if an error occurs
-
clearClassCache
Description copied from interface:Unmarshaller
Discard the class cache. Implicitly also discards the instance cache.- Specified by:
clearClassCache
in interfaceUnmarshaller
- Throws:
IOException
- if an error occurs
-