|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.wsf.common.concurrent.CopyJob
public final class CopyJob
Sample usage:
CopyJob copyJob = new CopyJob( inputStream, printStream ); new Thread( copyJob ).start(); try { // do some other staff ... } finally { copyJob.kill(); }
Constructor Summary | |
---|---|
CopyJob(java.io.InputStream is,
java.io.OutputStream os)
Constructor. |
Method Summary | |
---|---|
void |
kill()
Kills this job. |
void |
run()
Copies all data from input stream to output stream (both passed to constructor) until job is killed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CopyJob(java.io.InputStream is, java.io.OutputStream os)
is
- input stream to read data fromos
- output stream to write data toMethod Detail |
---|
public final void run()
run
in interface java.lang.Runnable
public final void kill()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |