public class RiverUnmarshaller extends AbstractUnmarshaller
classExternalizerFactory, classResolver, classTable, configuredVersion, exceptionListener, objectPreResolver, objectResolver, objectTable, serializabilityChecker, streamHeaderbuffer, limit, positionbyteInput| 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 java.lang.Object |
doReadNewObject(int streamClassType,
boolean unshared,
boolean discardMissing) |
protected java.lang.Object |
doReadObject(boolean unshared)
Implementation of the actual object-reading method.
|
void |
finish()
Finish reading from the current input.
|
protected void |
readFields(java.lang.Object obj,
SerializableClassDescriptor descriptor,
boolean discardMissing) |
protected java.lang.String |
readString() |
java.lang.String |
readUTF() |
void |
start(ByteInput byteInput)
Start reading from the given input.
|
readObject, readObject, readObjectUnshared, readObjectUnsharedavailable, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readIntDirect, readLine, readLong, readLongDirect, readShort, readUnsignedByte, readUnsignedByteDirect, readUnsignedShort, skip, skipBytesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadObject, readObjectUnshared, readObjectUnsharedprotected RiverUnmarshaller(RiverMarshallerFactory marshallerFactory, SerializableClassRegistry registry, MarshallingConfiguration configuration)
public void clearInstanceCache()
throws java.io.IOException
Unmarshallerjava.io.IOException - if an error occurspublic void clearClassCache()
throws java.io.IOException
Unmarshallerjava.io.IOException - if an error occurspublic void close()
throws java.io.IOException
SimpleDataInputclose in interface java.io.Closeableclose in interface java.io.ObjectInputclose in interface java.lang.AutoCloseableclose in class SimpleDataInputjava.io.IOExceptionpublic void finish()
throws java.io.IOException
AbstractUnmarshallerfinish in interface Unmarshallerfinish in class AbstractUnmarshallerjava.io.IOException - not thrown by this implementation, but may be overridden to be thrown if a problem occursprotected java.lang.Object doReadObject(boolean unshared)
throws java.lang.ClassNotFoundException,
java.io.IOException
AbstractObjectInputdoReadObject in class AbstractObjectInputunshared - 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 occursprotected java.lang.String readString()
throws java.io.IOException
java.io.IOExceptionpublic void start(ByteInput byteInput) throws java.io.IOException
AbstractUnmarshallerstart in interface Unmarshallerstart in class AbstractUnmarshallerbyteInput - the new input from which to readjava.io.IOException - not thrown by this implementation, but may be overridden to be thrown if a problem occursprotected java.lang.Object doReadNewObject(int streamClassType,
boolean unshared,
boolean discardMissing)
throws java.lang.ClassNotFoundException,
java.io.IOException
java.lang.ClassNotFoundExceptionjava.io.IOExceptionprotected void readFields(java.lang.Object obj,
SerializableClassDescriptor descriptor,
boolean discardMissing)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOExceptionjava.lang.ClassNotFoundExceptionprotected void discardFields(SerializableClassDescriptor descriptor) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String readUTF()
throws java.io.IOException
SimpleDataInputreadUTF in interface java.io.DataInputreadUTF in class SimpleDataInputjava.io.IOExceptionCopyright © 2011 JBoss, a division of Red Hat, Inc.