org.jboss.marshalling.river
Class RiverUnmarshaller
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.AbstractUnmarshaller
org.jboss.marshalling.river.RiverUnmarshaller
- All Implemented Interfaces:
- java.io.Closeable, java.io.DataInput, java.io.ObjectInput, ByteInput, Unmarshaller
public class RiverUnmarshaller
- extends AbstractUnmarshaller
Fields inherited from class org.jboss.marshalling.AbstractUnmarshaller |
classExternalizerFactory, classResolver, classTable, configuredVersion, exceptionListener, externalizerCreator, objectResolver, objectTable, serializabilityChecker, serializedCreator, streamHeader |
Methods 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, skipBytes |
Methods inherited from class java.io.InputStream |
mark, markSupported, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.ObjectInput |
available, read, read, read, readObject, skip |
Methods inherited from interface java.io.DataInput |
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, skipBytes |
RiverUnmarshaller
protected RiverUnmarshaller(RiverMarshallerFactory marshallerFactory,
SerializableClassRegistry registry,
MarshallingConfiguration configuration)
clearInstanceCache
public void clearInstanceCache()
throws java.io.IOException
- Description copied from interface:
Unmarshaller
- Discard the instance cache.
- 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.
- Throws:
java.io.IOException
- if an error occurs
close
public void close()
throws java.io.IOException
- Description copied from class:
ByteInputStream
-
- Specified by:
close
in interface java.io.Closeable
- Specified by:
close
in interface java.io.ObjectInput
- Overrides:
close
in class SimpleDataInput
- Throws:
java.io.IOException
finish
public void finish()
throws java.io.IOException
- Description copied from class:
AbstractUnmarshaller
- Finish unmarshalling from a stream. Any transient class or instance cache is discarded.
- Specified by:
finish
in interface Unmarshaller
- Overrides:
finish
in class AbstractUnmarshaller
- Throws:
java.io.IOException
- if an error occurs
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
readString
protected java.lang.String readString()
throws java.io.IOException
- Throws:
java.io.IOException
start
public void start(ByteInput byteInput)
throws java.io.IOException
- Description copied from class:
AbstractUnmarshaller
- Begin unmarshalling from a stream.
- Specified by:
start
in interface Unmarshaller
- Overrides:
start
in class AbstractUnmarshaller
- Parameters:
byteInput
- the new stream
- Throws:
java.io.IOException
- if an error occurs during setup, such as an invalid header
doReadNewObject
protected java.lang.Object doReadNewObject(int streamClassType,
boolean unshared)
throws java.lang.ClassNotFoundException,
java.io.IOException
- Throws:
java.lang.ClassNotFoundException
java.io.IOException
readFields
protected void readFields(java.lang.Object obj,
SerializableClassDescriptor descriptor)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
readUTF
public java.lang.String readUTF()
throws java.io.IOException
- Description copied from class:
SimpleDataInput
-
- Specified by:
readUTF
in interface java.io.DataInput
- Overrides:
readUTF
in class SimpleDataInput
- Throws:
java.io.IOException
Copyright © 2011 JBoss, a division of Red Hat, Inc.