public abstract class Downloader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_RETRY_CONNECT |
protected static int |
DEFAULT_RETRY_DOWNLOAD |
protected int |
retryConnect |
protected int |
retryDownload |
| Constructor and Description |
|---|
Downloader(int retryConnect,
int retryDownload) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
downloadZip(String driverName,
String url,
File targetZip) |
protected void |
extractExe(String driverName,
String url,
File installDirectory,
File executable) |
protected boolean |
isLinux32() |
protected boolean |
isMac() |
protected boolean |
isWindows() |
protected void |
pause(long timeout) |
protected void |
untar(File tar,
File toDir) |
protected void |
untarbz2(File zip,
File toDir) |
protected void |
unzip(File zip,
File toDir) |
protected static final int DEFAULT_RETRY_DOWNLOAD
protected static final int DEFAULT_RETRY_CONNECT
protected final int retryDownload
protected final int retryConnect
protected void pause(long timeout)
protected void extractExe(String driverName, String url, File installDirectory, File executable)
protected void untarbz2(File zip, File toDir) throws IOException
IOExceptionprotected void unzip(File zip, File toDir) throws IOException
IOExceptionprotected void untar(File tar, File toDir) throws IOException
IOExceptionprotected boolean isWindows()
protected boolean isMac()
protected boolean isLinux32()
Copyright © 2015. All Rights Reserved.