abbot.util
Class ProcessOutputHandler
java.lang.Object
java.lang.Thread
abbot.util.ProcessOutputHandler
- All Implemented Interfaces:
- Runnable
- public class ProcessOutputHandler
- extends Thread
Default process output handler, redirecting the subprocesses output to
System.out and System.err. Override the handleOutput and handleError
methods in order to get different results.
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
ProcessOutputHandler
public ProcessOutputHandler(Process p)
- Create an output handler for the given process.
ProcessOutputHandler
public ProcessOutputHandler(String name,
Process p)
- Create an output handler for the given process.
run
public void run()
handleInput
protected void handleInput(byte[] buf,
int len)
handleError
protected void handleError(byte[] buf,
int len)
Copyright © 2002-2004 Timothy Wall. All Rights Reserved.
Abbot is hosted on