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 void
deleteFile
(File file) void
deleteFolder
(File folder) download
(URL url, String driverVersion, String driverName, DriverManagerType driverManagerType) getTarget
(String driverVersion, String driverName, DriverManagerType driverManagerType, URL url) void
renameFile
(File from, File to) protected void
setFileExecutable
(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
-