All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ncsa.habanero.streams.MarshallInputStream

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----java.io.ObjectInputStream
                   |
                   +----ncsa.habanero.streams.MarshallInputStream

public class MarshallInputStream
extends ObjectInputStream
implements MarshallInput, Delimiters
MarshallInputStream This is the input stream which produces objects that have been marshalled.


Variable Index

 o currParent
 o resolveSpecifiables
 o underlyingSocket

Constructor Index

 o MarshallInputStream(InputStream)
 o MarshallInputStream(InputStream, Socket)

Method Index

 o getCurrentParent()
 o getUnderlyingSocket()
 o handleException(Throwable)
 o queryResolvingSpecifiables()
 o readObject(Object)
Read any information needed by the receiving object to recreate my state.
 o resolveObject(Object)
 o startResolvingSpecifiables()
 o stopResolvingSpecifiables()
 o tryToRecover()

Variables

 o currParent
 protected Object currParent
 o resolveSpecifiables
 protected int resolveSpecifiables
 o underlyingSocket
 protected Socket underlyingSocket

Constructors

 o MarshallInputStream
 public MarshallInputStream(InputStream in) throws IOException, StreamCorruptedException
Parameters:
in - the initializing input stream
Returns:
creates a MarshallInputStream
 o MarshallInputStream
 public MarshallInputStream(InputStream in,
                            Socket s) throws IOException, StreamCorruptedException

Methods

 o getUnderlyingSocket
 public Socket getUnderlyingSocket()
 o readObject
 public Object readObject(Object parent) throws HabaneroException, IOException, ClassNotFoundException
Read any information needed by the receiving object to recreate my state.

Parameters:
parent - - is the parent model object available
Returns:
reads and returns the next object
Throws: IOException
when it cannot read the object
 o getCurrentParent
 public Object getCurrentParent()
 o handleException
 protected void handleException(Throwable e)
Parameters:
e - the exception that we have to handle
Returns:
prints a message, a stack trace, adn tries to recover
 o tryToRecover
 protected void tryToRecover()
Parameters:
in - the input stream
Returns:
tries to recover from an error
 o resolveObject
 protected Object resolveObject(Object obj) throws IOException
Overrides:
resolveObject in class ObjectInputStream
 o stopResolvingSpecifiables
 public void stopResolvingSpecifiables()
 o startResolvingSpecifiables
 public void startResolvingSpecifiables()
 o queryResolvingSpecifiables
 public int queryResolvingSpecifiables()

All Packages  Class Hierarchy  This Package  Previous  Next  Index