org.opennms.core.utils
Class ProcessExec

java.lang.Object
  extended by org.opennms.core.utils.ProcessExec

public class ProcessExec
extends Object

ProcessExec class.


Nested Class Summary
 class ProcessExec.PrintInputStream
           
 
Constructor Summary
ProcessExec(PrintStream out, PrintStream err)
          Constructor for ProcessExec.
 
Method Summary
 int exec(String[] cmd)
          exec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessExec

public ProcessExec(PrintStream out,
                   PrintStream err)

Constructor for ProcessExec.

Parameters:
out - a PrintStream object.
err - a PrintStream object.
Method Detail

exec

public int exec(String[] cmd)
         throws IOException,
                InterruptedException

exec

Parameters:
cmd - an array of String objects.
Returns:
a int.
Throws:
IOException - if any.
InterruptedException - if any.


Copyright © 2011. All Rights Reserved.