📅  最后修改于: 2020-11-15 03:03:41             🧑  作者: Mango
java.lang.Process类提供了一些方法,用于执行来自流程的输入,执行至流程的输出,等待流程完成,检查流程的退出状态以及销毁(杀死)流程。
以下是java.lang.Process类的声明-
public abstract class Process
extends Object
Sr.No. | Constructor & Description |
---|---|
1 |
Process() This is the Single Constructor. |
Sr.No. | Method & Description |
---|---|
1 | abstract void destroy()
This method kills the subprocess. |
2 | abstract int exitValue()
This method returns the exit value for the subprocess. |
3 | abstract InputStream getErrorStream()
This method gets the error stream of the subprocess. |
4 | abstract InputStream getInputStream()
This method gets the input stream of the subprocess. |
5 | abstract OutputStream getOutputStream()
This method gets the output stream of the subprocess. |
6 | abstract int waitFor()
This method causes the current thread to wait, if necessary, until the process represented by this Process object has terminated. |
此类从以下类继承方法-