|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Process php.java.bridge.Util.Process
public static class Util.Process
Starts a CGI process and returns the process handle.
Nested Class Summary | |
---|---|
static class |
Util.Process.PhpException
A generic PHP exception |
Method Summary | |
---|---|
void |
checkError()
Check for a PHP fatal error and throw a PHP exception if necessary. |
void |
destroy()
|
int |
exitValue()
|
java.io.InputStream |
getErrorStream()
|
java.io.InputStream |
getInputStream()
|
java.io.OutputStream |
getOutputStream()
|
static Util.Process |
start(java.lang.String[] args,
boolean includeJava,
java.lang.String cgiDir,
java.lang.String pearDir,
java.lang.String webInfDir,
java.io.File homeDir,
java.util.Map env,
boolean tryOtherLocations,
boolean preferSystemPhp,
java.io.OutputStream err)
Starts a CGI process and returns the process handle. |
int |
waitFor()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Util.Process start(java.lang.String[] args, boolean includeJava, java.lang.String cgiDir, java.lang.String pearDir, java.lang.String webInfDir, java.io.File homeDir, java.util.Map env, boolean tryOtherLocations, boolean preferSystemPhp, java.io.OutputStream err) throws java.io.IOException
args
- The args array, e.g.: new String[]{null, "-b", ...};. If args is null or if args[0] is null, the function looks for the system property "php.java.bridge.php_exec".homeDir
- The home directory. If null, the current working directory is used.env
- The CGI environment. If null, Util.DEFAULT_CGI_ENVIRONMENT is used.tryOtherLocations
- true if we should check the DEFAULT_CGI_LOCATIONS firstpreferSystemPhp
- err
-
java.io.IOException
java.lang.NullPointerException
java.io.IOException
Util.checkCgiBinary(String)
public void checkError() throws Util.Process.PhpException
Util.Process.PhpException
public java.io.OutputStream getOutputStream()
getOutputStream
in class java.lang.Process
public java.io.InputStream getInputStream()
getInputStream
in class java.lang.Process
public java.io.InputStream getErrorStream()
getErrorStream
in class java.lang.Process
public int waitFor() throws java.lang.InterruptedException
waitFor
in class java.lang.Process
java.lang.InterruptedException
public int exitValue()
exitValue
in class java.lang.Process
public void destroy()
destroy
in class java.lang.Process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |