edu.yale.emailet
Interface ObjectLoader

All Known Implementing Classes:
ObjectLoaderImpl

public interface ObjectLoader

Author:
Hong Jiang This defines the interface of an "object loader". An object loader is used to deserialize objects. We want the classes coming from external sources to be loaded by a special class loader. When an object is deserialized, it is loaded by the same class loader that loads the class deserializing it.

Method Summary
 java.lang.Object readObject(java.io.ObjectInputStream in)
          Deserialize an object from a object input stream.
 

Method Detail

readObject

public java.lang.Object readObject(java.io.ObjectInputStream in)
                            throws java.io.OptionalDataException,
                                   java.lang.ClassNotFoundException,
                                   java.io.IOException,
                                   java.io.StreamCorruptedException
Deserialize an object from a object input stream.

java.io.OptionalDataException
java.lang.ClassNotFoundException
java.io.IOException
java.io.StreamCorruptedException