/** * Creates a stream pumper to copy the given input stream to the * given output stream. Used for standard input. */ protected StreamPumper createInputPump(final InputStream in, final OutputStream out, final boolean closeWhenExhausted) { assert in != null; assert out != null; StreamPumper pumper = new StreamPumper(in, out, closeWhenExhausted); pumper.setAutoFlush(true); return pumper; } }