Package org.jboss.marshalling.river
Class RiverUnmarshaller
- All Implemented Interfaces:
Closeable,DataInput,ObjectInput,AutoCloseable,ByteInput,Unmarshaller
-
Field Summary
Fields inherited from class org.jboss.marshalling.AbstractUnmarshaller
classExternalizerFactory, classResolver, classTable, configuredVersion, exceptionListener, objectPreResolver, objectResolver, objectTable, serializabilityChecker, streamHeaderFields inherited from class org.jboss.marshalling.SimpleDataInput
buffer, limit, positionFields inherited from class org.jboss.marshalling.ByteInputStream
byteInput -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRiverUnmarshaller(RiverMarshallerFactory marshallerFactory, SerializableClassRegistry registry, MarshallingConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidDiscard the class cache.voidDiscard the instance cache.voidclose()protected voiddiscardFields(SerializableClassDescriptor descriptor) protected ObjectdoReadNewObject(int streamClassType, boolean unshared, boolean discardMissing) protected ObjectdoReadObject(boolean unshared) Implementation of the actual object-reading method.voidfinish()Finish reading from the current input.protected voidreadFields(Object obj, SerializableClassDescriptor descriptor, boolean discardMissing) protected StringreadUTF()voidStart reading from the given input.Methods inherited from class org.jboss.marshalling.AbstractObjectInput
readObject, readObject, readObjectUnshared, readObjectUnsharedMethods inherited from class org.jboss.marshalling.SimpleDataInput
available, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readIntDirect, readLine, readLong, readLongDirect, readShort, readUnsignedByte, readUnsignedByteDirect, readUnsignedShort, skip, skipBytesMethods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, skipBytesMethods inherited from interface java.io.ObjectInput
available, read, read, read, readObject, skipMethods inherited from interface org.jboss.marshalling.Unmarshaller
readObject, readObjectUnshared, readObjectUnshared
-
Constructor Details
-
RiverUnmarshaller
protected RiverUnmarshaller(RiverMarshallerFactory marshallerFactory, SerializableClassRegistry registry, MarshallingConfiguration configuration)
-
-
Method Details
-
clearInstanceCache
Description copied from interface:UnmarshallerDiscard the instance cache.- Throws:
IOException- if an error occurs
-
clearClassCache
Description copied from interface:UnmarshallerDiscard the class cache. Implicitly also discards the instance cache.- Throws:
IOException- if an error occurs
-
close
Description copied from class:SimpleDataInput- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceObjectInput- Overrides:
closein classSimpleDataInput- Throws:
IOException
-
finish
Description copied from class:AbstractUnmarshallerFinish reading from the current input. The internal buffer is discarded, not flushed.- Specified by:
finishin interfaceUnmarshaller- Overrides:
finishin classAbstractUnmarshaller- Throws:
IOException- not thrown by this implementation, but may be overridden to be thrown if a problem occurs
-
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
-
readString
- Throws:
IOException
-
start
Description copied from class:AbstractUnmarshallerStart reading from the given input. The internal buffer is discarded.- Specified by:
startin interfaceUnmarshaller- Overrides:
startin classAbstractUnmarshaller- 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
-
doReadNewObject
protected Object doReadNewObject(int streamClassType, boolean unshared, boolean discardMissing) throws ClassNotFoundException, IOException - Throws:
ClassNotFoundExceptionIOException
-
readFields
protected void readFields(Object obj, SerializableClassDescriptor descriptor, boolean discardMissing) throws IOException, ClassNotFoundException - Throws:
IOExceptionClassNotFoundException
-
discardFields
- Throws:
IOException
-
readUTF
Description copied from class:SimpleDataInput- Specified by:
readUTFin interfaceDataInput- Overrides:
readUTFin classSimpleDataInput- Throws:
IOException
-