【问题标题】:Error/Output streams with current java process当前 java 进程的错误/输出流
【发布时间】:2012-02-06 22:05:40
【问题描述】:

我知道使用ErrorStreamOutputStream 你可以执行以下操作

Process process = Runtime.getRuntime ().exec ("the command you want to execute");
OutputStream stdin = process.getOutputStream ();
InputStream stderr = process.getErrorStream ();

如果我不想启动一个新进程,我想获得我正在处理的当前应用程序的ErrorStreamOutputStream。 (当前进程)。

如何获得?

【问题讨论】:

  • 使用System.outSystem.error

标签: java process stream


【解决方案1】:

您使用System.outSystem.err

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-04-08
    • 1970-01-01
    • 2018-09-07
    • 2012-03-21
    • 2016-01-29
    相关资源
    最近更新 更多