Skip to content

Commit

Permalink
fix some compilation errors in fileutils
Browse files Browse the repository at this point in the history
  • Loading branch information
fvarrui committed Feb 27, 2024
1 parent 404ab7a commit 046c53d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
Expand Down Expand Up @@ -328,10 +330,12 @@ public static void downloadFromUrl(URL url, File file) throws Exception {
*
* @param url URL to download
* @param file File to copy the downloaded resource
* @throws Exception
* @throws MalformedURLException
* @throws IOException Resource cannot be copied/downloaded
* @throws URISyntaxException
*/
public static void downloadFromUrl(String url, File file) throws IOException, URISyntaxException {
public static void downloadFromUrl(String url, File file) throws MalformedURLException, URISyntaxException, Exception {
downloadFromUrl(new URI(url).toURL(), file);
}

Expand Down

0 comments on commit 046c53d

Please sign in to comment.