Closeable
, DataInput
, ObjectInput
, ObjectStreamConstants
, AutoCloseable
, ByteInput
, ExtendedObjectStreamConstants
, Unmarshaller
public final class SerialUnmarshaller extends AbstractUnmarshaller implements Unmarshaller, ExtendedObjectStreamConstants
classExternalizerFactory, classResolver, classTable, configuredVersion, exceptionListener, objectPreResolver, objectResolver, objectTable, serializabilityChecker, streamHeader
byteInput
TC_CLASSTABLEDESC, TC_OBJECTTABLE
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, SERIAL_FILTER_PERMISSION, 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
buffer, limit, position
Modifier and Type | Method | Description |
---|---|---|
void |
clearClassCache() |
Discard the class cache.
|
void |
clearInstanceCache() |
Discard the instance cache.
|
void |
close() |
|
org.jboss.marshalling.serial.Descriptor |
descriptorForClass(Class<?> clazz) |
|
protected Object |
doReadObject(boolean unshared) |
Implementation of the actual object-reading method.
|
void |
finish() |
Finish reading from the current input.
|
void |
start(ByteInput byteInput) |
Start reading from the given input.
|
readObject, readObject, readObjectUnshared, readObjectUnshared
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
mark, markSupported, readAllBytes, readNBytes, reset, transferTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
available, read, read, read, readObject, skip
available, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readIntDirect, readLine, readLong, readLongDirect, readShort, readUnsignedByte, readUnsignedByteDirect, readUnsignedShort, readUTF, skip, skipBytes
readObject, readObjectUnshared, readObjectUnshared
protected Object doReadObject(boolean unshared) throws ClassNotFoundException, IOException
AbstractObjectInput
doReadObject
in class AbstractObjectInput
unshared
- true
if the instance should be unshared, false
if it is sharedClassNotFoundException
- if the class for the object could not be loadedIOException
- if an I/O error occurspublic void clearInstanceCache() throws IOException
Unmarshaller
clearInstanceCache
in interface Unmarshaller
IOException
- if an error occurspublic void clearClassCache() throws IOException
Unmarshaller
clearClassCache
in interface Unmarshaller
IOException
- if an error occurspublic void start(ByteInput byteInput) throws IOException
AbstractUnmarshaller
start
in interface Unmarshaller
start
in class AbstractUnmarshaller
byteInput
- the new input from which to readIOException
- not thrown by this implementation, but may be overridden to be thrown if a problem occurspublic void finish() throws IOException
AbstractUnmarshaller
finish
in interface Unmarshaller
finish
in class AbstractUnmarshaller
IOException
- not thrown by this implementation, but may be overridden to be thrown if a problem occurspublic void close() throws IOException
SimpleDataInput
close
in interface AutoCloseable
close
in interface Closeable
close
in interface ObjectInput
close
in class SimpleDataInput
IOException
public org.jboss.marshalling.serial.Descriptor descriptorForClass(Class<?> clazz)
Copyright © 2019 JBoss by Red Hat. All rights reserved.