Top Description Fields Constructors Methods
org.jboss.marshalling

public abstract Class AbstractUnmarshaller

extends AbstractObjectInput
implements Unmarshaller
Class Inheritance
All Implemented Interfaces
org.jboss.marshalling.Unmarshaller, org.jboss.marshalling.ByteInput, java.io.Closeable, java.lang.AutoCloseable, java.io.ObjectInput, java.io.DataInput
Imports
java.io.IOException

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

Field Summary

Modifier and TypeField and Description
protected final ClassExternalizerFactory
classExternalizerFactory

The configured class externalizer factory.

protected final ClassResolver
classResolver

The configured class resolver.

protected final ClassTable
classTable

The configured class table.

protected final int
configuredVersion

The configured version.

protected final ExceptionListener
exceptionListener

The configured exception listener.

protected final ObjectResolver
objectPreResolver

The configured object pre resolver.

protected final ObjectResolver
objectResolver

The configured object resolver.

protected final ObjectTable
objectTable

The configured object table.

protected final SerializabilityChecker
serializabilityChecker

The configured serializability checker.

protected final StreamHeader
streamHeader

The configured stream header.

Constructor Summary

AccessConstructor and Description
protected
AbstractUnmarshaller(final AbstractMarshallerFactory
the marshaller factory
marshallerFactory
,
final MarshallingConfiguration configuration)

Construct a new unmarshaller instance.

Method Summary

Modifier and TypeMethod and Description
public void
finish()

Overrides org.jboss.marshalling.SimpleDataInput.finish.

Implements org.jboss.marshalling.Unmarshaller.finish.

Finish unmarshalling from a stream.
public void
start(final ByteInput
the new stream
byteInput
)

Overrides org.jboss.marshalling.SimpleDataInput.start.

Implements org.jboss.marshalling.Unmarshaller.start.

Begin unmarshalling from a stream.
Inherited from org.jboss.marshalling.AbstractObjectInput:
doReadObjectreadObjectreadObjectreadObjectUnsharedreadObjectUnshared

Field Detail

classExternalizerFactoryback to summary
protected final ClassExternalizerFactory classExternalizerFactory

The configured class externalizer factory.

classResolverback to summary
protected final ClassResolver classResolver

The configured class resolver.

classTableback to summary
protected final ClassTable classTable

The configured class table.

configuredVersionback to summary
protected final int configuredVersion

The configured version.

exceptionListenerback to summary
protected final ExceptionListener exceptionListener

The configured exception listener.

objectPreResolverback to summary
protected final ObjectResolver objectPreResolver

The configured object pre resolver.

objectResolverback to summary
protected final ObjectResolver objectResolver

The configured object resolver.

objectTableback to summary
protected final ObjectTable objectTable

The configured object table.

serializabilityCheckerback to summary
protected final SerializabilityChecker serializabilityChecker

The configured serializability checker.

streamHeaderback to summary
protected final StreamHeader streamHeader

The configured stream header.

Constructor Detail

AbstractUnmarshallerback to summary
protected AbstractUnmarshaller(final AbstractMarshallerFactory marshallerFactory, final MarshallingConfiguration configuration)

Construct a new unmarshaller instance.

Parameters
marshallerFactory:AbstractMarshallerFactory

the marshaller factory

Method Detail

finishback to summary
public void finish() throws IOException

Overrides org.jboss.marshalling.SimpleDataInput.finish.

Implements org.jboss.marshalling.Unmarshaller.finish.

Doc from org.jboss.marshalling.Unmarshaller.finish.

Finish unmarshalling from a stream. Any transient class or instance cache is discarded.

Exceptions
IOException:
if an error occurs
startback to summary
public void start(final ByteInput byteInput) throws IOException

Overrides org.jboss.marshalling.SimpleDataInput.start.

Implements org.jboss.marshalling.Unmarshaller.start.

Doc from org.jboss.marshalling.Unmarshaller.start.

Begin unmarshalling from a stream.

Parameters
byteInput:ByteInput

the new stream

Exceptions
IOException:
if an error occurs during setup, such as an invalid header