public class RiverUnmarshaller extends AbstractUnmarshaller
classExternalizerFactory, classResolver, classTable, configuredVersion, exceptionListener, objectPreResolver, objectResolver, objectTable, serializabilityChecker, streamHeader
buffer, limit, position
byteInput
Modifier | Constructor and Description |
---|---|
protected |
RiverUnmarshaller(RiverMarshallerFactory marshallerFactory,
SerializableClassRegistry registry,
MarshallingConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
clearClassCache()
Discard the class cache.
|
void |
clearInstanceCache()
Discard the instance cache.
|
void |
close() |
protected void |
discardFields(SerializableClassDescriptor descriptor) |
protected Object |
doReadNewObject(int streamClassType,
boolean unshared,
boolean discardMissing) |
protected Object |
doReadObject(boolean unshared)
Implementation of the actual object-reading method.
|
void |
finish()
Finish reading from the current input.
|
protected void |
readFields(Object obj,
SerializableClassDescriptor descriptor,
boolean discardMissing) |
protected String |
readString() |
String |
readUTF() |
void |
start(ByteInput byteInput)
Start reading from the given input.
|
readObject, readObject, readObjectUnshared, readObjectUnshared
available, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readIntDirect, readLine, readLong, readLongDirect, readShort, readUnsignedByte, readUnsignedByteDirect, readUnsignedShort, skip, skipBytes
mark, markSupported, reset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readObject, readObjectUnshared, readObjectUnshared
available, read, read, read, readObject, skip
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, skipBytes
protected RiverUnmarshaller(RiverMarshallerFactory marshallerFactory, SerializableClassRegistry registry, MarshallingConfiguration configuration)
public void clearInstanceCache() throws IOException
Unmarshaller
IOException
- if an error occurspublic void clearClassCache() throws IOException
Unmarshaller
IOException
- if an error occurspublic void close() throws IOException
SimpleDataInput
close
in interface Closeable
close
in interface ObjectInput
close
in interface AutoCloseable
close
in class SimpleDataInput
IOException
public 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 occursprotected 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 occursprotected String readString() throws IOException
IOException
public 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 occursprotected Object doReadNewObject(int streamClassType, boolean unshared, boolean discardMissing) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
protected void readFields(Object obj, SerializableClassDescriptor descriptor, boolean discardMissing) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
protected void discardFields(SerializableClassDescriptor descriptor) throws IOException
IOException
public String readUTF() throws IOException
SimpleDataInput
readUTF
in interface DataInput
readUTF
in class SimpleDataInput
IOException
Copyright © 2021 JBoss by Red Hat. All rights reserved.