org.wamblee.io
Class SimpleProcess

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

public class SimpleProcess
extends Object

Version:
$Revision$
Author:
$author$

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

Constructor Detail

SimpleProcess

public SimpleProcess(File aDirectory,
                     String[] aCmd)
Creates a new SimpleProcess object.

Method Detail

getStdout

public String getStdout()
Returns:
the stdout

getStderr

public String getStderr()
Returns:
the stderr

run

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

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.