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 |
executeNative(File workingDir,
String... commands) |
protected void |
extractExe(String url,
File phantomInstallDir,
File phantomJsExe) |
protected boolean |
isLinux32() |
protected boolean |
isMac() |
protected boolean |
isWindows() |
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 unzip(File zip, File toDir) throws IOException
IOExceptionprotected void executeNative(File workingDir, String... commands) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected boolean isWindows()
protected boolean isMac()
protected boolean isLinux32()
Copyright © 2015. All Rights Reserved.