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 Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voiddeleteFile(File file)voiddeleteFolder(File folder)Stringdownload(URL url, String driverVersion, String driverName, DriverManagerType driverManagerType)FilegetTarget(String driverVersion, String driverName, DriverManagerType driverManagerType, URL url)voidrenameFile(File from, File to)protected voidsetFileExecutable(File file)voidunTarGz(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
public static void deleteFile(File file)
-
deleteFolder
public void deleteFolder(File folder)
-
-