Package io.github.bonigarcia.wdm.online
Class Downloader
java.lang.Object
io.github.bonigarcia.wdm.online.Downloader
Downloader class.
- Since:
- 1.0.0
- Author:
- Boni Garcia
-
Constructor Summary
ConstructorsConstructorDescriptionDownloader(HttpClient httpClient, Config config, Function<File, List<File>> postDownloadFunction) -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddeleteFile(File file) voiddeleteFolder(File folder) download(URL url, String driverVersion, String driverName, DriverManagerType driverManagerType) getTarget(String driverVersion, String driverName, DriverManagerType driverManagerType, URL url) voidrenameFile(File from, File to) protected voidsetFileExecutable(File file) void
-
Constructor Details
-
Downloader
-
-
Method Details
-
download
public String download(URL url, String driverVersion, String driverName, DriverManagerType driverManagerType) throws IOException - Throws:
IOException
-
getTarget
public File getTarget(String driverVersion, String driverName, DriverManagerType driverManagerType, URL url) -
unTarGz
- Throws:
IOException
-
setFileExecutable
-
renameFile
-
deleteFile
-
deleteFolder
-