|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.luaj.vm2.lib.jse.JseProcess
public class JseProcess
Analog of Process that pipes input and output to client-specified streams.
Constructor Summary | |
---|---|
JseProcess(java.lang.String[] cmd,
java.io.InputStream stdin,
java.io.OutputStream stdout,
java.io.OutputStream stderr)
Construct a process around a command, with specified streams to redirect input and output to. |
|
JseProcess(java.lang.String cmd,
java.io.InputStream stdin,
java.io.OutputStream stdout,
java.io.OutputStream stderr)
Construct a process around a command, with specified streams to redirect input and output to. |
Method Summary | |
---|---|
int |
exitValue()
Get the exit value of the process. |
int |
waitFor()
Wait for the process to complete, and all pending output to finish. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JseProcess(java.lang.String[] cmd, java.io.InputStream stdin, java.io.OutputStream stdout, java.io.OutputStream stderr) throws java.io.IOException
cmd
- The command to execute, including arguments, if anystdin
- Optional InputStream to read from as process input, or null if input is not needed.stdout
- Optional OutputStream to copy process output to, or null if output is ignored.stderr
- Optinoal OutputStream to copy process stderr output to, or null if output is ignored.
java.io.IOException
- If the system process could not be created.Process
public JseProcess(java.lang.String cmd, java.io.InputStream stdin, java.io.OutputStream stdout, java.io.OutputStream stderr) throws java.io.IOException
cmd
- The command to execute, including arguments, if anystdin
- Optional InputStream to read from as process input, or null if input is not needed.stdout
- Optional OutputStream to copy process output to, or null if output is ignored.stderr
- Optinoal OutputStream to copy process stderr output to, or null if output is ignored.
java.io.IOException
- If the system process could not be created.Process
Method Detail |
---|
public int exitValue()
public int waitFor() throws java.lang.InterruptedException
java.lang.InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |