com.perdues
Class BytePump

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--com.perdues.BytePump
All Implemented Interfaces:
java.lang.Runnable

public class BytePump
extends java.lang.Thread

Copies from InputStream to OutputStream until EOF. IOExceptions result in a RuntimeException thrown from "run".


Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BytePump(java.io.InputStream in, java.io.OutputStream out)
           
 
Method Summary
 void run()
          Implementation of Thread.run.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BytePump

public BytePump(java.io.InputStream in,
                java.io.OutputStream out)
Method Detail

run

public void run()
Implementation of Thread.run.
Overrides:
run in class java.lang.Thread