/** * Waits for the stream to close then returns the String representation of * its contents (this is equivalent to doing a join then calling toString) */ public String blockOnOutput() { try { this.join(); return output.toString(); } catch (InterruptedException ie) { ie.printStackTrace(); return "Interrupted!"; } }
dotOut.flush(); dotOut.close(); new StreamDevourer(dotProcess.getErrorStream()).start(); new StreamCopier(dotProcess.getInputStream(), fos).start(); } catch (Exception ex) {