public final class SerialUnmarshaller extends AbstractUnmarshaller implements Unmarshaller, ExtendedObjectStreamConstants
byteInput, classExternalizerFactory, classResolver, classTable, configuredVersion, creator, externalizerFactory, objectResolver, objectTable, streamHeader
TC_CLASSTABLEDESC, TC_OBJECTTABLE
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
Modifier and Type | Method and Description |
---|---|
void |
clearClassCache()
Discard the class cache.
|
void |
clearInstanceCache()
Discard the instance cache.
|
void |
close() |
org.jboss.marshalling.serial.Descriptor |
descriptorForClass(java.lang.Class<?> clazz) |
protected java.lang.Object |
doReadObject(boolean unshared)
Implementation of the actual object-reading method.
|
protected void |
doStart()
Perform any unmarshaller-specific start activity.
|
void |
finish()
Finish unmarshalling from a stream.
|
void |
start(ByteInput byteInput)
Begin unmarshalling from a stream.
|
available, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readIntDirect, readLine, readLong, readLongDirect, readObject, readObjectUnshared, readShort, readUnsignedByte, readUnsignedByteDirect, readUnsignedShort, readUTF, skip, skipBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readObjectUnshared
protected java.lang.Object doReadObject(boolean unshared) throws java.lang.ClassNotFoundException, java.io.IOException
AbstractUnmarshaller
doReadObject
in class AbstractUnmarshaller
unshared
- true
if the instance should be unshared, false
if it is sharedjava.lang.ClassNotFoundException
- if the class for the object could not be loadedjava.io.IOException
- if an I/O error occurspublic void clearInstanceCache() throws java.io.IOException
Unmarshaller
clearInstanceCache
in interface Unmarshaller
java.io.IOException
- if an error occurspublic void clearClassCache() throws java.io.IOException
Unmarshaller
clearClassCache
in interface Unmarshaller
java.io.IOException
- if an error occurspublic void start(ByteInput byteInput) throws java.io.IOException
AbstractUnmarshaller
start
in interface Unmarshaller
start
in class AbstractUnmarshaller
byteInput
- the new streamjava.io.IOException
- if an error occurs during setup, such as an invalid headerprotected void doStart() throws java.io.IOException
AbstractUnmarshaller
doStart
in class AbstractUnmarshaller
java.io.IOException
- if I/O exception occurspublic void finish() throws java.io.IOException
AbstractUnmarshaller
finish
in interface Unmarshaller
finish
in class AbstractUnmarshaller
java.io.IOException
- if an error occurspublic void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.io.ObjectInput
close
in interface java.lang.AutoCloseable
java.io.IOException
public org.jboss.marshalling.serial.Descriptor descriptorForClass(java.lang.Class<?> clazz)