org.wamblee.io
Class SimpleProcess

java.lang.Object
  extended by org.wamblee.io.SimpleProcess

public class SimpleProcess
extends java.lang.Object


Constructor Summary
SimpleProcess(java.io.File aDirectory, java.lang.String[] aCmd)
           
 
Method Summary
 java.lang.String getStderr()
           
 java.lang.String getStdout()
           
 int run()
          Runs the process and blocks until it is done.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleProcess

public SimpleProcess(java.io.File aDirectory,
                     java.lang.String[] aCmd)
Method Detail

getStdout

public java.lang.String getStdout()
Returns:
the stdout

getStderr

public java.lang.String getStderr()
Returns:
the stderr

run

public int run()
        throws java.io.IOException
Runs the process and blocks until it is done.

Returns:
Exit status of the process.
Throws:
java.io.IOException - In case of problems.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.