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, waitForpublic 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
IOExceptionprotected Spawner(String[] command, String[] environment, File workingDirectory) throws IOException
IOExceptionprotected Spawner(String[] cmdarray, String[] envp, File dir, PTY pty) throws IOException
IOExceptionprotected Spawner(String command) throws IOException
IOExceptionprotected Spawner(String[] command) throws IOException
IOExceptionprotected Spawner(String[] command, String[] environment) throws IOException
IOExceptionprotected Spawner(String command, String[] environment) throws IOException
IOExceptionprotected Spawner(String command, String[] environment, File workingDirectory) throws IOException
IOExceptionprotected void finalize()
throws Throwable
public InputStream getInputStream()
getInputStream in class Processpublic OutputStream getOutputStream()
getOutputStream in class Processpublic InputStream getErrorStream()
getErrorStream in class Processpublic int waitFor()
throws InterruptedException
waitFor in class ProcessInterruptedExceptionpublic 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
IOExceptionpublic int raise(int processID,
int sig)
Copyright © 2025. All rights reserved.