org.activemath.util
Class InToOutStream
java.lang.Object
java.lang.Thread
org.activemath.util.InToOutStream
- All Implemented Interfaces:
- Runnable
public class InToOutStream
- extends Thread
A simple class and thread to read from an input-stream and write to the outputstream.
The outputStream is written to at every end of line or every 512 characters.
Any exception occuring while reading stops the thread and is stored in the #excpetion
variable.
|
Method Summary |
static void |
main(String[] args)
For testing: cats a file. |
void |
run()
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
exception
public Exception exception
InToOutStream
public InToOutStream(InputStream in,
OutputStream out)
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
main
public static void main(String[] args)
throws IOException
- For testing: cats a file.
- Throws:
IOException