Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.derbyTesting.functionTests.harness
Class BackgroundStreamDrainer  view BackgroundStreamDrainer download BackgroundStreamDrainer.java

java.lang.Object
  extended byorg.apache.derbyTesting.functionTests.harness.BackgroundStreamDrainer
All Implemented Interfaces:
java.lang.Runnable

public class BackgroundStreamDrainer
extends java.lang.Object
implements java.lang.Runnable


Field Summary
protected  java.io.ByteArrayOutputStream data
           
protected  boolean finished
           
protected  java.io.InputStream in
           
protected  java.io.IOException ioe
           
protected  java.lang.Thread myThread
           
protected  long startTime
           
protected  int timeout
           
 
Constructor Summary
BackgroundStreamDrainer(java.io.InputStream in, java.lang.String timemin)
           
 
Method Summary
 java.io.InputStream getData()
           
 void run()
          This method will be called by whoever wishes to run your class implementing Runnable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected java.io.ByteArrayOutputStream data

in

protected java.io.InputStream in

finished

protected boolean finished

ioe

protected java.io.IOException ioe

startTime

protected long startTime

myThread

protected java.lang.Thread myThread

timeout

protected int timeout
Constructor Detail

BackgroundStreamDrainer

public BackgroundStreamDrainer(java.io.InputStream in,
                               java.lang.String timemin)
Method Detail

run

public void run()
Description copied from interface: java.lang.Runnable
This method will be called by whoever wishes to run your class implementing Runnable. Note that there are no restrictions on what you are allowed to do in the run method, except that you cannot throw a checked exception.

Specified by:
run in interface java.lang.Runnable

getData

public java.io.InputStream getData()
                            throws java.io.IOException