public class Downloader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
Downloader(BrowserManager browserManager) |
Downloader(BrowserManager browserManager,
WdmHttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
void |
download(URL url,
String version,
String export,
List<String> driverName) |
File |
extract(File compressedFile,
String export) |
File |
extractMsi(File msi) |
void |
forceDownload() |
String |
getTarget(String version,
URL url) |
String |
getTargetPath() |
File |
unBZip2(File archive) |
File |
unGzip(File archive) |
File |
unTarGz(File archive) |
File |
unZip(File compressedFile) |
public Downloader(BrowserManager browserManager)
public Downloader(BrowserManager browserManager, WdmHttpClient httpClient)
public void download(URL url, String version, String export, List<String> driverName) throws IOException
IOExceptionpublic File extract(File compressedFile, String export) throws IOException
IOExceptionpublic File unZip(File compressedFile) throws IOException
IOExceptionpublic File unGzip(File archive) throws IOException
IOExceptionpublic File unTarGz(File archive) throws IOException
IOExceptionpublic File unBZip2(File archive) throws IOException
IOExceptionpublic String getTarget(String version, URL url) throws IOException
IOExceptionpublic String getTargetPath()
public void forceDownload()
public File extractMsi(File msi) throws IOException
IOExceptionCopyright © 2017. All rights reserved.