93949596979899100
return code; } finally { timer.cancel(); } } else { throw new ProcessNotRunningException("Process is not running"); } }
122123124125126127128129
*/ public InputStream getInputStream() throws ProcessNotRunningException { if (process != null) { return inputStream;// process.getInputStream(); } else { throw new ProcessNotRunningException("Process is not running"); } }
135136137138139140141142
*/ public OutputStream getOutputStream() throws ProcessNotRunningException { if (process != null) { return outputStream;// process.getOutputStream(); } else { throw new ProcessNotRunningException("Process is not running"); } }
148149150151152153154155
*/ public InputStream getErrorStream() throws ProcessNotRunningException { if (process != null) { return errorStream;// process.getErrorStream(); } else { throw new ProcessNotRunningException("Process is not running"); } }