protected void pumpStream() throws IOException { int bytesRead; while ((bytesRead = this.bis.read(this.inputBuffer)) != -1) { this.bytes.write(this.inputBuffer, 0, bytesRead); } this.bytes.flush(); this.bytes.close(); this.bis.close(); }
protected void pumpStream() { try { int bytesRead; while ((bytesRead = this.bis.read(this.inputBuffer)) != -1) { this.bytes.write(this.inputBuffer, 0, bytesRead); } } catch (IOException ex) { System.err .println("Problem occured during fetching the command output: " + ex.getMessage()); } finally { try { this.bytes.flush(); this.bytes.close(); this.bis.close(); } catch (IOException e) {  } } }
        protected void pumpStream()            throws IOException {            int bytesRead;            while ((bytesRead = this.bis.read(this.inputBuffer)) != -1) {                this.bytes.write(this.inputBuffer, 0, bytesRead);            }            this.bytes.flush();            this.bytes.close();            this.bis.close();        }