java.lang.Process
- The Runtime exec methods return a Process object.
- Controls the process and obtain information about it.
The subprocess is not killed when there are no more references to the Process object, but rather the subprocess continues executing asynchronously.
public abstract int waitFor()
public abstract int exitValue()
public abstract void destroy()
public abstract OutputStream getOutputStream()
public abstract InputStream getInputStream()
public abstract InputStream getErrorStream()