code: public static void copyBytes(InputStream in, OutputStream out, Configuration conf)
      throws IOException {
      copyBytes(in, out, conf.getInt("io.file.buffer.size", 4096), true);
    }
docs: Copies from one stream to another. <strong>closes the input and output streams
  at the end</strong>.
  @param in InputStrem to read from
  @param out OutputStream to write to
  @param conf the Configuration object