/** * Create the pump to handle error output. */ protected void createChildErrorPump(final InputStream in, final OutputStream out) { assert in != null; assert out != null; errorThread = createPump(in, out); }
/** * Create the pump to handle child output. */ protected void createChildOutputPump(final InputStream in, final OutputStream out) { assert in != null; assert out != null; outputThread = createPump(in, out); }
/** * Creates a stream pumper to copy the given input stream to the given output stream. */ protected Thread createPump(final InputStream in, final OutputStream out) { assert in != null; assert out != null; return createPump(in, out, false); }