public class Downloader extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DRONE_TARGET_DOWNLOADED_DIRECTORY |
| Constructor and Description |
|---|
Downloader() |
| Modifier and Type | Method and Description |
|---|---|
static File |
download(File targetDir,
URL from)
Downloads file from the given url and stores it either in given directory or if the directory is null, then in
a directory
target/drone/downloaded/. |
public static final String DRONE_TARGET_DOWNLOADED_DIRECTORY
public static File download(File targetDir, URL from)
target/drone/downloaded/. The downloaded file is then returned.targetDir - A directory where the downloaded file should be storedfrom - A url a file should be downloaded from.Copyright © 2017 JBoss by Red Hat. All rights reserved.