public class Spawner extends Process
Modifier and Type | Field and Description |
---|---|
int |
CTRLC
A fabricated signal number for use on Windows only.
|
int |
HUP |
int |
INT
On Windows, what this does is far from easy to explain.
|
int |
KILL |
int |
NOOP |
int |
TERM |
Modifier | Constructor and Description |
---|---|
protected |
Spawner(String command) |
protected |
Spawner(String[] command) |
protected |
Spawner(String[] command,
String[] environment) |
protected |
Spawner(String[] command,
String[] environment,
File workingDirectory) |
protected |
Spawner(String[] cmdarray,
String[] envp,
File dir,
PTY pty) |
|
Spawner(String command,
boolean bNoRedirect) |
protected |
Spawner(String command,
String[] environment) |
protected |
Spawner(String command,
String[] environment,
File workingDirectory) |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
See java.lang.Process#destroy ();
Clients are responsible for explicitly closing any streams that they have requested through getErrorStream(),
getInputStream() or getOutputStream()
|
void |
exec_detached(String[] cmdarray,
String[] envp,
String dirpath) |
int |
exitValue()
See java.lang.Process#exitValue ();
|
protected void |
finalize() |
InputStream |
getErrorStream()
See java.lang.Process#getErrorStream (); The client is responsible for closing the stream explicitly.
|
InputStream |
getInputStream()
See java.lang.Process#getInputStream (); The client is responsible for closing the stream explicitly.
|
OutputStream |
getOutputStream()
See java.lang.Process#getOutputStream (); The client is responsible for closing the stream explicitly.
|
int |
hangup() |
int |
interrupt() |
int |
interruptCTRLC() |
boolean |
isRunning() |
int |
kill() |
int |
raise(int processID,
int sig) |
int |
terminate() |
int |
waitFor()
See java.lang.Process#waitFor ();
|
destroyForcibly, isAlive, waitFor
public int NOOP
public int HUP
public int KILL
public int TERM
public int INT
public int CTRLC
public Spawner(String command, boolean bNoRedirect) throws IOException
IOException
protected Spawner(String[] command, String[] environment, File workingDirectory) throws IOException
IOException
protected Spawner(String[] cmdarray, String[] envp, File dir, PTY pty) throws IOException
IOException
protected Spawner(String command) throws IOException
IOException
protected Spawner(String[] command) throws IOException
IOException
protected Spawner(String[] command, String[] environment) throws IOException
IOException
protected Spawner(String command, String[] environment) throws IOException
IOException
protected Spawner(String command, String[] environment, File workingDirectory) throws IOException
IOException
protected void finalize() throws Throwable
public InputStream getInputStream()
getInputStream
in class Process
public OutputStream getOutputStream()
getOutputStream
in class Process
public InputStream getErrorStream()
getErrorStream
in class Process
public int waitFor() throws InterruptedException
waitFor
in class Process
InterruptedException
public int exitValue()
public void destroy()
public int interrupt()
public int interruptCTRLC()
public int hangup()
public int kill()
public int terminate()
public boolean isRunning()
public void exec_detached(String[] cmdarray, String[] envp, String dirpath) throws IOException
IOException
public int raise(int processID, int sig)
Copyright © 2024. All rights reserved.