code: public void download(OutputStream outputStream) throws IOException {
      InputStream inputStream = getContent();
      IOUtils.copy(inputStream, outputStream);
    }
docs: Writes the content of the HTTP response into the given destination output stream.
  
  <p>Sample usage:
  
  <pre>
  HttpRequest request = requestFactory.buildGetRequest(
  new GenericUrl("https://www.google.com/images/srpr/logo3w.png"));
  OutputStream outputStream = new FileOutputStream(new File("/tmp/logo3w.png"));
  try {
  HttpResponse response = request.execute();
  response.download(outputStream);
  } finally {
  outputStream.close();
  }
  </pre>
  
  <p>This method closes the content of the HTTP response from {@link #getContent()}.
  
  <p>This method does not close the given output stream.
  
  @param outputStream destination output stream
  @throws IOException I/O exception
  @since 1.9