code: public static void copy(InputStream inputStream, OutputStream outputStream) throws IOException {
      copy(inputStream, outputStream, true);
    }
docs: Writes the content provided by the given source input stream into the given destination output
  stream.
  
  <p>The input stream is guaranteed to be closed at the end of this method.
  
  <p>Sample use:
  
  <pre>
  static void copy(InputStream inputStream, File file) throws IOException {
  FileOutputStream out = new FileOutputStream(file);
  try {
  IOUtils.copy(inputStream, out);
  } finally {
  out.close();
  }
  }
  </pre>
  
  @param inputStream source input stream
  @param outputStream destination output stream