AutoCloseable, ByteInput, Closeable, DataInput, ObjectInputAbstractUnmarshaller, ObjectInputStreamUnmarshallerpublic interface Unmarshaller extends ObjectInput, ByteInput
| Modifier and Type | Method | Description |
|---|---|---|
void |
clearClassCache() |
Discard the class cache.
|
void |
clearInstanceCache() |
Discard the instance cache.
|
void |
finish() |
Finish unmarshalling from a stream.
|
<T> T |
readObject(Class<T> type) |
Read and return an object, cast to a specific type.
|
Object |
readObjectUnshared() |
Read and return an unshared object.
|
<T> T |
readObjectUnshared(Class<T> type) |
Read and return an unshared object, cast to a specific type.
|
void |
start(ByteInput newInput) |
Begin unmarshalling from a stream.
|
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytesavailable, close, read, read, read, readObject, skipObject readObjectUnshared() throws ClassNotFoundException, IOException
ClassNotFoundException - if the class of a serialized object cannot be foundIOException - if an error occurs<T> T readObject(Class<T> type) throws ClassNotFoundException, IOException
T - the object typetype - the object classClassNotFoundException - if the class of a serialized object cannot be foundInvalidObjectException - if the object is not of the expected typeIOException - if an error occurs<T> T readObjectUnshared(Class<T> type) throws ClassNotFoundException, IOException
T - the object typetype - the object classClassNotFoundException - if the class of a serialized object cannot be foundInvalidObjectException - if the object is not of the expected typeIOException - if an error occursvoid start(ByteInput newInput) throws IOException
newInput - the new streamIOException - if an error occurs during setup, such as an invalid headervoid clearInstanceCache()
throws IOException
IOException - if an error occursvoid clearClassCache()
throws IOException
IOException - if an error occursvoid finish()
throws IOException
IOException - if an error occursCopyright © 2018 JBoss by Red Hat. All rights reserved.