|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.command.CommandExecuteStreamHandler
public class CommandExecuteStreamHandler
This class returns the contents of the output stream and error streams that resulted from executing a command line.
Constructor Summary | |
---|---|
CommandExecuteStreamHandler(Build build)
|
Method Summary | |
---|---|
List |
getCommandOutputLines()
Returns all the output generated by the command |
List |
getErrorOutputLines()
Returns all of the commands error output |
void |
setProcessErrorStream(InputStream inputStream)
Process the commands error stream |
void |
setProcessInputStream(OutputStream outputStream)
Handle the command's input stream - currently ignored |
void |
setProcessOutputStream(InputStream inputStream)
Process the command output stream |
void |
start()
Required by the intereface, but not implemented |
void |
stop()
Stop the threads |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandExecuteStreamHandler(Build build)
Method Detail |
---|
public void setProcessInputStream(OutputStream outputStream) throws IOException
outputStream
- The output stream
IOException
- Failurepublic void setProcessErrorStream(InputStream inputStream) throws IOException
inputStream
- The error stream
IOException
- Something went wrongpublic void setProcessOutputStream(InputStream inputStream) throws IOException
inputStream
- The data output from the command
IOException
- Something went wrongpublic void start() throws IOException
IOException
- Will never happen!public void stop()
public List getErrorOutputLines()
public List getCommandOutputLines()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |