public class PhantomJsDownloader extends Object
| Modifier | Constructor and Description |
|---|---|
|
PhantomJsDownloader() |
protected |
PhantomJsDownloader(int retry) |
| Modifier and Type | Method and Description |
|---|---|
protected 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) |
PhantomJSDriver |
getDriverForThread() |
protected boolean |
isLinux32() |
protected boolean |
isMac() |
protected boolean |
isWindows() |
protected void |
unzip(File zip,
File toDir) |
public PhantomJsDownloader()
protected PhantomJsDownloader(int retry)
public PhantomJSDriver getDriverForThread()
protected 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.