Package com.vaadin.copilot
Class Downloader
java.lang.Object
com.vaadin.copilot.Downloader
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
downloadFile
(URL url, File target, ProjectManager projectManager, FileDownloader.ProgressListener progressListener) Downloads a file from the given URL to the target file.
-
Method Details
-
downloadFile
public static void downloadFile(URL url, File target, ProjectManager projectManager, FileDownloader.ProgressListener progressListener) throws URISyntaxException, DownloadException Downloads a file from the given URL to the target file.- Parameters:
url
- the URL to download fromtarget
- the target file to download toprojectManager
- the project manager to use to detect proxy configurationprogressListener
- the progress listener to use for tracking the download progress- Throws:
URISyntaxException
DownloadException
-