public class Downloader extends Object
| Constructor and Description |
|---|
Downloader() |
| Modifier and Type | Method and Description |
|---|---|
static void |
download(String url,
String destDir)
Download a file overwriting existent ones
|
static void |
download(String url,
String destDir,
boolean overwrite)
Download a file
|
public static void download(String url, String destDir, boolean overwrite) throws ResourceExchangeException
url - the URL to the filedestDir - destination directoryoverwrite - whether or not to overwrite existent filesResourceExchangeException - if unable to download the filepublic static void download(String url, String destDir) throws ResourceExchangeException
url - the URL to the filedestDir - destination directoryResourceExchangeException - if unable to download the fileThis documentation was released into the public domain.