org.riotfamily.common.io
Class RuntimeCommand

java.lang.Object
  extended by org.riotfamily.common.io.RuntimeCommand

public class RuntimeCommand
extends Object

Since:
6.5
Author:
Felix Gnass [fgnass at neteye dot de]

Constructor Summary
RuntimeCommand(String... commandLine)
           
 
Method Summary
 RuntimeCommand exec()
           
 String getErrors()
           
 int getExitCode()
           
 String getOutput()
           
 String getResult()
           
 OutputStream getStdIn()
           
 RuntimeCommand setStdErrStream(OutputStream stdErr)
           
 RuntimeCommand setStdOutStream(OutputStream stdOut)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeCommand

public RuntimeCommand(String... commandLine)
Method Detail

setStdOutStream

public RuntimeCommand setStdOutStream(OutputStream stdOut)

setStdErrStream

public RuntimeCommand setStdErrStream(OutputStream stdErr)

exec

public RuntimeCommand exec()
                    throws IOException
Throws:
IOException

getStdIn

public OutputStream getStdIn()

getExitCode

public int getExitCode()

getOutput

public String getOutput()

getErrors

public String getErrors()

getResult

public String getResult()
                 throws IOException
Throws:
IOException