public class PhantomJsDownloader extends Object
| Modifier | Constructor and Description |
|---|---|
|
PhantomJsDownloader() |
protected |
PhantomJsDownloader(int retryDownload,
int retryConnect) |
| Modifier and Type | Method and Description |
|---|---|
PhantomJSDriver |
createNewDriver() |
protected PhantomJSDriver |
createNewPhantomJsDriver(File phantomJsExe) |
protected File |
downloadAndExtract() |
protected void |
downloadZip(String url,
File targetZip) |
protected void |
extractExe(String url,
File phantomInstallDir,
File phantomJsExe) |
protected boolean |
isLinux32() |
protected boolean |
isMac() |
protected boolean |
isWindows() |
protected void |
untar(File tar,
File toDir) |
protected void |
untarbz2(File zip,
File toDir) |
protected void |
unzip(File zip,
File toDir) |
public PhantomJsDownloader()
protected PhantomJsDownloader(int retryDownload,
int retryConnect)
public PhantomJSDriver createNewDriver()
protected PhantomJSDriver createNewPhantomJsDriver(File phantomJsExe)
protected File downloadAndExtract()
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.