public class FileDownloader extends Object
Constructor and Description |
---|
FileDownloader() |
Modifier and Type | Method and Description |
---|---|
static File |
downloadFile(URL fileUrl,
File targetDir,
Component parentComponent)
Downloads a file from the specified URL to the specified local target directory.
|
public static File downloadFile(URL fileUrl, File targetDir, Component parentComponent) throws IOException
fileUrl
- the URL of the file to be downloadedtargetDir
- the target directoryparentComponent
- the parent component to be used by the progress monitorIOException
- if an I/O error occursCopyright © 2014–2017 European Space Agency (ESA). All rights reserved.