The Process class provides functionality for interacting with a system process.
Returns the process id for the process represented by this object.
This function returns the process id for the process represented by this object. If no process is associated with the object, the function returns 0.
getStandardError() returns a ProcessOutputStream which allows the caller to retrieve the stderr output of a process.
getStandardOutput() returns a ProcessOutputStream which allows the caller to retrieve the stdout contents of a process.
After starting a process with start(), calling isRunning() can be used to determine whether the process is still running or not
True if the process is successfully stopped, and false otherwise.
This function kills the process associated with this object.
Calling this method puts the process object in redirect mode. Redirct mode is useful for capturing the standard output and standard error output text of the process. A call to setRedirect() is necessary in order to use the getStandardOutput() and/or getStandardError() methods. setRedirect() must be called before start() is invoked.
After starting a process with start(), calling waitForExit() will block the calling thread until the process has completed execution.