|
OMS (v3.0.25) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oms3.util.Processes
public class Processes
ProcessExcecution. Helper class to execute external programs.
Field Summary | |
---|---|
static int |
INVALID_EXIT
|
Constructor Summary | |
---|---|
Processes(java.io.File executable)
Create a new ProcessExecution. |
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
environment()
get the execution environment. |
int |
exec()
Process execution. |
int |
getExitValue()
Get the exit value of the process. |
static void |
main(java.lang.String[] args)
|
void |
redirectError(java.io.OutputStream err)
Redirect the error stream. |
void |
redirectInput(java.io.InputStream inp)
Redirect the input. |
void |
redirectOutput(java.io.OutputStream out)
Redirect the output. |
void |
setArguments(java.lang.Object... args)
|
void |
setVerbose(boolean verbose)
|
void |
setWorkingDirectory(java.io.File dir)
Set the working directory where the process get executed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int INVALID_EXIT
Constructor Detail |
---|
public Processes(java.io.File executable)
executable
- the executable file.Method Detail |
---|
public void setArguments(java.lang.Object... args)
args
- public void setWorkingDirectory(java.io.File dir)
dir
- the directory in which the executable will be startedpublic java.util.Map<java.lang.String,java.lang.String> environment()
public void redirectOutput(java.io.OutputStream out)
out
- the new output streampublic void redirectError(java.io.OutputStream err)
err
- the new error streampublic void redirectInput(java.io.InputStream inp)
inp
- the new input streampublic int getExitValue()
public void setVerbose(boolean verbose)
public int exec() throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
OMS (v3.0.25) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |