public final class DownloadUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
download(java.lang.String url,
java.lang.String output)
Downloads a file from specified url.
|
static void |
download(java.lang.String url,
java.lang.String output,
ai.djl.util.Progress progress)
Downloads a file from specified url.
|
static void |
download(java.net.URL url,
java.nio.file.Path output,
ai.djl.util.Progress progress)
Downloads a file from specified url.
|
public static void download(java.lang.String url, java.lang.String output) throws java.io.IOException
url
- the url to downloadoutput
- the output locationjava.io.IOException
- when IO operation fails in downloadingpublic static void download(java.lang.String url, java.lang.String output, ai.djl.util.Progress progress) throws java.io.IOException
url
- the url to downloadoutput
- the output locationprogress
- the progress tracker to show download progressjava.io.IOException
- when IO operation fails in downloadingpublic static void download(java.net.URL url, java.nio.file.Path output, ai.djl.util.Progress progress) throws java.io.IOException
url
- the url to downloadoutput
- the output locationprogress
- the progress tracker to show download progressjava.io.IOException
- when IO operation fails in downloading