public class SimpleFileDownloader extends Object implements FileDownloader
| Constructor and Description |
|---|
SimpleFileDownloader() |
| Modifier and Type | Method and Description |
|---|---|
protected Path |
copyLocalFile(URL fileUrl)
Efficient copy of file in case of local file system.
|
Path |
downloadFile(URL fileUrl)
Downloads a file.
|
protected Path |
downloadFileHttp(URL fileUrl)
Downloads file from HTTP or FTP.
|
public Path downloadFile(URL fileUrl) throws IOException
downloadFile in interface FileDownloaderfileUrl - the URI representing the file to downloadIOException - in case of network or IO problemsorg.pf4j.PluginRuntimeException - in case of other problemsprotected Path copyLocalFile(URL fileUrl) throws IOException
fileUrl - source fileIOException - if problems during copyorg.pf4j.PluginRuntimeException - in case of other problemsprotected Path downloadFileHttp(URL fileUrl) throws IOException
fileUrl - source fileIOException - if IO problemsorg.pf4j.PluginRuntimeException - if validation fails or any other problemsCopyright © 2020. All rights reserved.