public interface Unmarshaller extends java.io.ObjectInput, ByteInput
Modifier and Type | Method and Description |
---|---|
void |
clearClassCache()
Discard the class cache.
|
void |
clearInstanceCache()
Discard the instance cache.
|
void |
finish()
Finish unmarshalling from a stream.
|
<T> T |
readObject(java.lang.Class<T> type)
Read and return an object, cast to a specific type.
|
java.lang.Object |
readObjectUnshared()
Read and return an unshared object.
|
<T> T |
readObjectUnshared(java.lang.Class<T> type)
Read and return an unshared object, cast to a specific type.
|
void |
start(ByteInput newInput)
Begin unmarshalling from a stream.
|
available, close, read, read, read, readObject, skip
java.lang.Object readObjectUnshared() throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
- if the class of a serialized object cannot be foundjava.io.IOException
- if an error occurs<T> T readObject(java.lang.Class<T> type) throws java.lang.ClassNotFoundException, java.io.IOException
T
- the object typetype
- the object classjava.lang.ClassNotFoundException
- if the class of a serialized object cannot be foundjava.io.InvalidObjectException
- if the object is not of the expected typejava.io.IOException
- if an error occurs<T> T readObjectUnshared(java.lang.Class<T> type) throws java.lang.ClassNotFoundException, java.io.IOException
T
- the object typetype
- the object classjava.lang.ClassNotFoundException
- if the class of a serialized object cannot be foundjava.io.InvalidObjectException
- if the object is not of the expected typejava.io.IOException
- if an error occursvoid start(ByteInput newInput) throws java.io.IOException
newInput
- the new streamjava.io.IOException
- if an error occurs during setup, such as an invalid headervoid clearInstanceCache() throws java.io.IOException
java.io.IOException
- if an error occursvoid clearClassCache() throws java.io.IOException
java.io.IOException
- if an error occursvoid finish() throws java.io.IOException
java.io.IOException
- if an error occursCopyright © 2011 JBoss, a division of Red Hat, Inc.