|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.util.externalprocess.ProcessFactory
Process Factory creates a external process. The factory could be used to create a process in another way than java.lang. Runtime.exec();
| Method Summary | |
java.lang.Process |
exec(java.lang.String cmd)
Executes the specified command in a separate process. |
java.lang.Process |
exec(java.lang.String[] cmdarray)
Executes the specified command and arguments in a separate process. |
java.lang.Process |
exec(java.lang.String[] cmdarray,
java.lang.String[] envp)
Executes the specified command and arguments in a separate process with the specified environment. |
java.lang.Process |
exec(java.lang.String[] cmdarray,
java.lang.String[] envp,
java.lang.String dir)
Executes the specified command and arguments in a separate process with the specified environment and working directory. |
java.lang.Process |
exec(java.lang.String cmd,
java.lang.String[] envp)
Executes the specified command in a separate process with the specified environment. |
java.lang.Process |
exec(java.lang.String cmd,
java.lang.String[] envp,
java.lang.String dir)
Executes the specified command in a separate process with the specified environment and working directory. |
static ProcessFactory |
getFactory()
get the Process Factory.instance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static ProcessFactory getFactory()
public java.lang.Process exec(java.lang.String cmd)
throws java.io.IOException
cmd - the command to call
java.io.IOException - if an I/O error occurs.
public java.lang.Process exec(java.lang.String[] cmdarray)
throws java.io.IOException
cmdarray - array containing the command to call and its arguments
java.io.IOException - if an I/O error occurs.
public java.lang.Process exec(java.lang.String[] cmdarray,
java.lang.String[] envp)
throws java.io.IOException
cmdarray - array containing the command to call and its argumentsenvp - array of strings, each element of which has environment
variable settings in format name=value.
java.io.IOException - if an I/O error occurs.
public java.lang.Process exec(java.lang.String cmd,
java.lang.String[] envp)
throws java.io.IOException
cmd - the command to callenvp - array of strings, each element of which has environment
variable settings in format name=value.
java.io.IOException - if an I/O error occurs.
public java.lang.Process exec(java.lang.String cmd,
java.lang.String[] envp,
java.lang.String dir)
throws java.io.IOException
cmd - the command to callenvp - array of strings, each element of which has environment
variable settings in format name=value.dir - the working directory of the subprocess
java.io.IOException - if an I/O error occurs.
public java.lang.Process exec(java.lang.String[] cmdarray,
java.lang.String[] envp,
java.lang.String dir)
throws java.io.IOException
cmdarray - array containing the command to call and its argumentsenvp - array of strings, each element of which has environment
variable settings in format name=value.dir - the working directory of the subprocess
java.io.IOException - if an I/O error occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||