uk.org.ogsadai.common
Class PausableInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--uk.org.ogsadai.common.PausableInputStream

public class PausableInputStream
extends java.io.InputStream

Author:
The OGSA-DAI Project Team

Constructor Summary
PausableInputStream(java.io.InputStream inStream)
           
 
Method Summary
 boolean isFinished()
           
 void pause()
           
 void proceed()
           
 int read()
           
 void setError(java.lang.Exception error)
           
 void setFinished()
           
 void waitUntilPaused()
           
 void waitUntilProceeding()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PausableInputStream

public PausableInputStream(java.io.InputStream inStream)
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
java.io.IOException

pause

public void pause()

proceed

public void proceed()

waitUntilPaused

public void waitUntilPaused()
                     throws java.lang.Exception
java.lang.Exception

waitUntilProceeding

public void waitUntilProceeding()
                         throws java.lang.Exception
java.lang.Exception

setFinished

public void setFinished()

isFinished

public boolean isFinished()

setError

public void setError(java.lang.Exception error)