code: public static File copy(URL url, String encoding) throws IOException, IllegalArgumentException
    {
      Params.notNull(url, "Source URL");
      URLConnection connection = url.openConnection();
      connection.setDoInput(true);
      return copy(connection.getInputStream(), encoding);
    }
docs: Copy text from URL using specified encoding to local temporary file then close both URL input stream and temporary
  file.
  
  @param url source file URL,
  @param encoding character encoding to use.
  @return temporarily created file.
  @throws IOException if copy operation fails.
  @throws IllegalArgumentException if <code>url</code> parameter is null.