Marshalling API version 1.0.0.GA

org.jboss.marshalling
Interface Unmarshaller

All Superinterfaces:
ByteInput, Closeable, DataInput, ObjectInput
All Known Implementing Classes:
AbstractUnmarshaller

public interface Unmarshaller
extends ObjectInput, ByteInput

An unmarshaller which reads objects from a stream.


Method Summary
 void clearClassCache()
          Discard the class cache.
 void clearInstanceCache()
          Discard the instance cache.
 void finish()
          Finish unmarshalling from a stream.
 Object readObjectUnshared()
          Read and return an unshared object.
 void start(ByteInput newInput)
          Begin unmarshalling from a stream.
 
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
close
 

Method Detail

readObjectUnshared

Object readObjectUnshared()
                          throws ClassNotFoundException,
                                 IOException
Read and return an unshared object.

Returns:
an unshared object
Throws:
IOException - if an error occurs
ClassNotFoundException

start

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

Parameters:
newInput - the new stream
Throws:
IOException - if an error occurs during setup, such as an invalid header

clearInstanceCache

void clearInstanceCache()
                        throws IOException
Discard the instance cache.

Throws:
IOException - if an error occurs

clearClassCache

void clearClassCache()
                     throws IOException
Discard the class cache. Implicitly also discards the instance cache.

Throws:
IOException - if an error occurs

finish

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

Throws:
IOException - if an error occurs

Marshalling API version 1.0.0.GA

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