Process Class

The methods in the Process class let you to control processes started by the methods ProcessBuilder.start and Runtime.exec. The following table summarizes these methods:

The following table summarizes the methods of the Process class.

Table 6-2 Process Class Methods

Method Type Related Methods
Wait for the process to complete.
Retrieve information about the process.
Retrieve input, output, and error streams. See Handling Processes When They Terminate with the onExit Method for an example.
Retrieve direct and indirect child processes.
Destroy or terminate the process.
Return a CompletableFuture instance that will be completed when the process exits. See Handling Processes When They Terminate with the onExit Method for an example.