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:
java.io.Closeable,java.io.DataInput,java.io.ObjectInput,java.lang.AutoCloseable,ByteInput,Unmarshaller
- Enclosing class:
- SerializingCloner
class SerializingCloner.StepObjectInput extends AbstractObjectInput implements Unmarshaller
-
-
Field Summary
Fields Modifier and Type Field Description private SerializingCloner.Stepcurrentprivate intidxprivate java.util.Queue<SerializingCloner.Step>steps-
Fields inherited from class org.jboss.marshalling.SimpleDataInput
buffer, limit, position
-
Fields inherited from class org.jboss.marshalling.ByteInputStream
byteInput
-
-
Constructor Summary
Constructors Constructor Description StepObjectInput(java.util.Queue<SerializingCloner.Step> steps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearClassCache()Discard the class cache.voidclearInstanceCache()Discard the instance cache.protected java.lang.ObjectdoReadObject(boolean unshared)Implementation of the actual object-reading method.voidfinish()Finish reading from the current input.voidstart(ByteInput byteInput)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, 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 Detail
-
steps
private final java.util.Queue<SerializingCloner.Step> steps
-
current
private SerializingCloner.Step current
-
idx
private int idx
-
-
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.IOExceptionDescription 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:
java.lang.ClassNotFoundException- if the class for the object could not be loadedjava.io.IOException- if an I/O error occurs
-
finish
public void finish() throws java.io.IOExceptionDescription copied from class:SimpleDataInputFinish reading from the current input. The internal buffer is discarded, not flushed.- Specified by:
finishin interfaceUnmarshaller- Overrides:
finishin classSimpleDataInput- 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: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:
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.IOExceptionDescription copied from interface:UnmarshallerDiscard the instance cache.- Specified by:
clearInstanceCachein interfaceUnmarshaller- Throws:
java.io.IOException- if an error occurs
-
clearClassCache
public void clearClassCache() throws java.io.IOExceptionDescription copied from interface:UnmarshallerDiscard the class cache. Implicitly also discards the instance cache.- Specified by:
clearClassCachein interfaceUnmarshaller- Throws:
java.io.IOException- if an error occurs
-
-