Package io.github.bonigarcia.wdm.online
Class Downloader
- java.lang.Object
-
- io.github.bonigarcia.wdm.online.Downloader
-
public class Downloader extends Object
Downloader class.- Since:
- 1.0.0
- Author:
- Boni Garcia
-
-
Constructor Summary
Constructors Constructor Description Downloader(HttpClient httpClient, Config config, Function<File,List<File>> postDownloadFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
deleteFile(File file)
void
deleteFolder(File folder)
String
download(URL url, String driverVersion, String driverName, DriverManagerType driverManagerType)
File
getTarget(String driverVersion, String driverName, DriverManagerType driverManagerType, URL url)
void
renameFile(File from, File to)
protected void
setFileExecutable(File file)
void
unTarGz(File tarGzFile)
-
-
-
Method Detail
-
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
public void unTarGz(File tarGzFile) throws IOException
- Throws:
IOException
-
setFileExecutable
protected void setFileExecutable(File file)
-
deleteFile
protected void deleteFile(File file)
-
deleteFolder
public void deleteFolder(File folder)
-
-