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.
-
currParent
-
-
resolveSpecifiables
-
-
underlyingSocket
-
-
MarshallInputStream(InputStream)
-
-
MarshallInputStream(InputStream, Socket)
-
-
getCurrentParent()
-
-
getUnderlyingSocket()
-
-
handleException(Throwable)
-
-
queryResolvingSpecifiables()
-
-
readObject(Object)
- Read any information needed by the receiving object to recreate
my state.
-
resolveObject(Object)
-
-
startResolvingSpecifiables()
-
-
stopResolvingSpecifiables()
-
-
tryToRecover()
-
currParent
protected Object currParent
resolveSpecifiables
protected int resolveSpecifiables
underlyingSocket
protected Socket underlyingSocket
MarshallInputStream
public MarshallInputStream(InputStream in) throws IOException, StreamCorruptedException
- Parameters:
- in - the initializing input stream
- Returns:
- creates a MarshallInputStream
MarshallInputStream
public MarshallInputStream(InputStream in,
Socket s) throws IOException, StreamCorruptedException
getUnderlyingSocket
public Socket getUnderlyingSocket()
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
getCurrentParent
public Object getCurrentParent()
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
tryToRecover
protected void tryToRecover()
- Parameters:
- in - the input stream
- Returns:
- tries to recover from an error
resolveObject
protected Object resolveObject(Object obj) throws IOException
- Overrides:
- resolveObject in class ObjectInputStream
stopResolvingSpecifiables
public void stopResolvingSpecifiables()
startResolvingSpecifiables
public void startResolvingSpecifiables()
queryResolvingSpecifiables
public int queryResolvingSpecifiables()
All Packages Class Hierarchy This Package Previous Next Index