|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.atlassian.fisheye.plugins.scm.utils.process.CopyOutputHandler
public class CopyOutputHandler
An Output Handler which copies the process output into a give output stream
| Constructor Summary | |
|---|---|
CopyOutputHandler(java.io.OutputStream dest)
Create a CopyOutputHandler to redirect output from the process to the given stream |
|
| Method Summary | |
|---|---|
void |
complete()
Called when the process completes. |
void |
process(java.io.InputStream output)
Process an output stream generated by the external process (either stdout or stderr) |
void |
setWatchdog(Watchdog watchdog)
Set the watchdog that this handler should be resetting to prevent the process from being terminated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CopyOutputHandler(java.io.OutputStream dest)
dest - the stream to which output is to be written| Method Detail |
|---|
public void process(java.io.InputStream output)
throws ProcessException
OutputHandler
process in interface OutputHandleroutput - the external process' output stream (available as an input to this class)
ProcessException - if there is a problem processing the outputpublic void setWatchdog(Watchdog watchdog)
OutputHandler
setWatchdog in interface OutputHandlerwatchdog - process watchdog instance.public void complete()
OutputHandler
complete in interface OutputHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||