| java.lang.Object org.mmbase.util.externalprocess.ProcessFactory
ProcessFactory | public class ProcessFactory (Code) | | Process Factory creates a external process.
The factory could be used to create a process in another way than java.lang.
Runtime.exec();
author: Nico Klasens (Finalist IT Group) version: $Id: ProcessFactory.java,v 1.3 2003/05/12 13:10:47 kees Exp $ since: MMBase-1.6 |
Method Summary | |
public Process | exec(String cmd) Executes the specified command in a separate process. | public Process | exec(String[] cmdarray) Executes the specified command and arguments in a separate process. | public Process | exec(String[] cmdarray, String[] envp) Executes the specified command and arguments in a separate process with
the specified environment.
Parameters: cmdarray - array containing the command to call and its arguments Parameters: envp - array of strings, each element of which has environmentvariable settings in format name=value. | public Process | exec(String cmd, String[] envp) Executes the specified command in a separate process with the specified
environment.
Parameters: cmd - the command to call Parameters: envp - array of strings, each element of which has environmentvariable settings in format name=value. | public Process | exec(String cmd, String[] envp, String dir) Executes the specified command in a separate process with the specified
environment and working directory. | public 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. | public static ProcessFactory | getFactory() |
exec | public Process exec(String cmd) throws IOException(Code) | | Executes the specified command in a separate process.
Parameters: cmd - the command to call Process a Process object for managing the external process throws: IOException - if an I/O error occurs. |
exec | public Process exec(String[] cmdarray) throws IOException(Code) | | Executes the specified command and arguments in a separate process.
Parameters: cmdarray - array containing the command to call and its arguments Process a Process object for managing the external process throws: IOException - if an I/O error occurs. |
exec | public Process exec(String[] cmdarray, String[] envp) throws IOException(Code) | | Executes the specified command and arguments in a separate process with
the specified environment.
Parameters: cmdarray - array containing the command to call and its arguments Parameters: envp - array of strings, each element of which has environmentvariable settings in format name=value. Process a Process object for managing the external process throws: IOException - if an I/O error occurs. |
exec | public Process exec(String cmd, String[] envp) throws IOException(Code) | | Executes the specified command in a separate process with the specified
environment.
Parameters: cmd - the command to call Parameters: envp - array of strings, each element of which has environmentvariable settings in format name=value. Process a Process object for managing the external process throws: IOException - if an I/O error occurs. |
exec | public Process exec(String cmd, String[] envp, String dir) throws IOException(Code) | | Executes the specified command in a separate process with the specified
environment and working directory.
Parameters: cmd - the command to call Parameters: envp - array of strings, each element of which has environmentvariable settings in format name=value. Parameters: dir - the working directory of the subprocess Process a Process object for managing the external process throws: IOException - if an I/O error occurs. |
exec | public Process exec(String cmdarray, String[] envp, String dir) throws IOException(Code) | | Executes the specified command and arguments in a separate process with
the specified environment and working directory.
Parameters: cmdarray - array containing the command to call and its arguments Parameters: envp - array of strings, each element of which has environmentvariable settings in format name=value. Parameters: dir - the working directory of the subprocess Process a Process object for managing the external process throws: IOException - if an I/O error occurs. |
getFactory | public static ProcessFactory getFactory()(Code) | | get the Process Factory.instance
ProcessFactory |
|
|