看名字,应该是取得子进程的输出流,不过看了Java官方的解释,一头雾水,怎么又和输入流扯上了?通过管道重定向到了某个进程的输入流?返回值是与子进程的正常输入相关的输出流?到底是什么流?哪位高手能解释一下?getOutputStreampublic abstract OutputStream getOutputStream()
Gets the output stream of the subprocess. Output to the stream is piped into the standard input stream of the process represented by this Process object.
Implementation note: It is a good idea for the output stream to be buffered.Returns:
the output stream connected to the normal input of the subprocess.