Class java.rmi.server.MarshalInputStream
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.rmi.server.MarshalInputStream

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----java.io.FilterInputStream
                   |
                   +----java.io.DataInputStream
                           |
                           +----java.io.ObjectInputStream
                                   |
                                   +----java.rmi.server.MarshalInputStream

public class MarshalInputStream
extends ObjectInputStream
implements MarshalInput
The MarshalInputStream is extended from ObjectInputStream to extract the location of stub classes to dynamically load and to create stubs for remote objects. The location is used only if the stubs are not available locally.

A new MarshalInputStream should be created to deserialize remote objects or graphs containing remote objects. Objects are created from the stream using the ObjectInputStream.readObject method. MarshalInputStream uses information embedded in the stream to locate and load stub classes, if those stubs are not available locally.


Constructor Index

 o MarshalInputStream(InputStream)
Create a new MarshalInputStream object.

Method Index

 o resolveClass(String)
ResolveClass is extended to acquire (if present) the location from which to load the specified class.

Constructors

 o MarshalInputStream
  public MarshalInputStream(InputStream in) throws IOException, StreamCorruptedException
Create a new MarshalInputStream object.

Methods

 o resolveClass
  protected Class resolveClass(String classname) throws IOException, ClassNotFoundException
ResolveClass is extended to acquire (if present) the location from which to load the specified class. It will find, load, and return the class.
Overrides:
resolveClass in class ObjectInputStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index