protected void pumpStream() throws IOException { String line; while((line = this.reader.readLine()) != null) { if (this.coalesceLines) { this.sb.append(line); } else { this.sb.append(line).append(Helper.NEWLINE); } } }
protected void pumpStream() { try { String line; while ((line = this.reader.readLine()) != null) { if (this.coalesceLines) { this.sb.append(line); } else { this.sb.append(line).append(Helper.NEWLINE); } } } catch (IOException ex) { System.err .println("Problem occured during fetching the command output: " + ex.getMessage()); } finally { try { reader.close(); } catch (IOException e) {  } } }
        protected void pumpStream()            throws IOException {            String line;            while((line = this.reader.readLine()) != null) {                if (this.coalesceLines) {                    this.sb.append(line);                } else {                    this.sb.append(line).append(Helper.NEWLINE);                }            }        }