Package ai.djl.training.util
Class DownloadUtils
java.lang.Object
ai.djl.training.util.DownloadUtils
A utility class downloads the file from specified url.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidDownloads a file from specified url.static voidDownloads a file from specified url.static voidDownloads a file from specified url.
-
Method Details
-
download
Downloads a file from specified url.- Parameters:
url- the url to downloadoutput- the output location- Throws:
IOException- when IO operation fails in downloading
-
download
public static void download(String url, String output, ai.djl.util.Progress progress) throws IOException Downloads a file from specified url.- Parameters:
url- the url to downloadoutput- the output locationprogress- the progress tracker to show download progress- Throws:
IOException- when IO operation fails in downloading
-
download
Downloads a file from specified url.- Parameters:
url- the url to downloadoutput- the output locationprogress- the progress tracker to show download progress- Throws:
IOException- when IO operation fails in downloading
-