JBoss Marshalling 1.3.0.CR9

Class AbstractUnmarshaller

  extended by java.io.InputStream
      extended by org.jboss.marshalling.SimpleByteInput
          extended by org.jboss.marshalling.ByteInputStream
              extended by org.jboss.marshalling.SimpleDataInput
                  extended by org.jboss.marshalling.AbstractObjectInput
                      extended by org.jboss.marshalling.AbstractUnmarshaller
All Implemented Interfaces:
Closeable, DataInput, ObjectInput, ByteInput, Unmarshaller

public abstract class AbstractUnmarshaller
extends AbstractObjectInput
implements Unmarshaller

An abstract implementation of the Unmarshaller interface. Most of the write methods delegate directly to the current data output.

Field Summary
protected  ClassExternalizerFactory classExternalizerFactory
          The configured class externalizer factory.
protected  ClassResolver classResolver
          The configured class resolver.
protected  ClassTable classTable
          The configured class table.
protected  int configuredVersion
          The configured version.
protected  ExceptionListener exceptionListener
          The configured exception listener.
protected  Creator externalizerCreator
          The configured serialized object creator.
protected  ObjectResolver objectResolver
          The configured object resolver.
protected  ObjectTable objectTable
          The configured object table.
protected  SerializabilityChecker serializabilityChecker
          The configured serializability checker.
protected  Creator serializedCreator
          The configured serialized object creator.
protected  StreamHeader streamHeader
          The configured stream header.
Fields inherited from class org.jboss.marshalling.SimpleDataInput
buffer, limit, position
Fields inherited from class org.jboss.marshalling.ByteInputStream
Constructor Summary
protected AbstractUnmarshaller(AbstractMarshallerFactory marshallerFactory, MarshallingConfiguration configuration)
          Construct a new unmarshaller instance.
Method Summary
 void finish()
          Finish unmarshalling from a stream.
 void start(ByteInput byteInput)
          Begin unmarshalling from a stream.
Methods inherited from class org.jboss.marshalling.AbstractObjectInput
doReadObject, readObject, readObject, readObjectUnshared, readObjectUnshared
Methods inherited from class org.jboss.marshalling.SimpleDataInput
available, close, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readIntDirect, readLine, readLong, readLongDirect, readShort, readUnsignedByte, readUnsignedByteDirect, readUnsignedShort, readUTF, skip, skipBytes
Methods inherited from class java.io.InputStream
mark, markSupported, reset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.marshalling.Unmarshaller
clearClassCache, clearInstanceCache, readObject, readObjectUnshared, readObjectUnshared
Methods inherited from interface java.io.ObjectInput
available, close, read, read, read, readObject, skip
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
Methods inherited from interface org.jboss.marshalling.ByteInput
available, read, read, read, skip
Methods inherited from interface java.io.Closeable

Field Detail


protected final ClassExternalizerFactory classExternalizerFactory
The configured class externalizer factory.


protected final StreamHeader streamHeader
The configured stream header.


protected final ClassResolver classResolver
The configured class resolver.


protected final ObjectResolver objectResolver
The configured object resolver.


protected final Creator serializedCreator
The configured serialized object creator.


protected final Creator externalizerCreator
The configured serialized object creator.


protected final ClassTable classTable
The configured class table.


protected final ObjectTable objectTable
The configured object table.


protected final ExceptionListener exceptionListener
The configured exception listener.


protected final SerializabilityChecker serializabilityChecker
The configured serializability checker.


protected final int configuredVersion
The configured version.

Constructor Detail


protected AbstractUnmarshaller(AbstractMarshallerFactory marshallerFactory,
                               MarshallingConfiguration configuration)
Construct a new unmarshaller instance.

marshallerFactory - the marshaller factory
configuration -
Method Detail


public void start(ByteInput byteInput)
           throws IOException
Begin unmarshalling from a stream.

Specified by:
start in interface Unmarshaller
start in class SimpleDataInput
byteInput - the new stream
IOException - if an error occurs during setup, such as an invalid header


public void finish()
            throws IOException
Finish unmarshalling from a stream. Any transient class or instance cache is discarded.

Specified by:
finish in interface Unmarshaller
finish in class SimpleDataInput
IOException - if an error occurs

JBoss Marshalling 1.3.0.CR9

Copyright © 2011 JBoss, a division of Red Hat, Inc.