|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.externalprocess.ProcessFactory
public class 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 | |
|---|---|
Process |
exec(String cmd)
Executes the specified command in a separate process. |
Process |
exec(String[] cmdarray)
Executes the specified command and arguments in a separate process. |
Process |
exec(String[] cmdarray,
String[] envp)
Executes the specified command and arguments in a separate process with the specified environment. |
Process |
exec(String[] cmdarray,
String[] envp,
String dir)
Executes the specified command and arguments in a separate process with the specified environment and working directory. |
Process |
exec(String cmd,
String[] envp)
Executes the specified command in a separate process with the specified environment. |
Process |
exec(String cmd,
String[] envp,
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 Process exec(String cmd)
throws IOException
cmd - the command to call
IOException - if an I/O error occurs.
public Process exec(String[] cmdarray)
throws IOException
cmdarray - array containing the command to call and its arguments
IOException - if an I/O error occurs.
public Process exec(String[] cmdarray,
String[] envp)
throws 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.
IOException - if an I/O error occurs.
public Process exec(String cmd,
String[] envp)
throws IOException
cmd - the command to callenvp - array of strings, each element of which has environment
variable settings in format name=value.
IOException - if an I/O error occurs.
public Process exec(String cmd,
String[] envp,
String dir)
throws 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
IOException - if an I/O error occurs.
public Process exec(String[] cmdarray,
String[] envp,
String dir)
throws 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
IOException - if an I/O error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||