/** * Close the streams belonging to the given Process. * * @param process the <CODE>Process</CODE>. */ private void closeProcessStreams(final Process process) { try { process.getInputStream().close(); } catch (final IOException e) { setExceptionCaught(e); } try { process.getOutputStream().close(); } catch (final IOException e) { setExceptionCaught(e); } try { process.getErrorStream().close(); } catch (final IOException e) { setExceptionCaught(e); } }
final File dir, final ExecuteStreamHandler streams) throws IOException { setExceptionCaught(null); setExceptionCaught(e);