com.github.axet.wget
Class WGet
java.lang.Object
com.github.axet.wget.WGet
public class WGet
- extends Object
|
Constructor Summary |
WGet(DownloadInfo info,
File targetFile)
application controlled download / resume. |
WGet(URL source,
File target)
download with events control. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WGet
public WGet(URL source,
File target)
- download with events control.
- Parameters:
source - target -
WGet
public WGet(DownloadInfo info,
File targetFile)
- application controlled download / resume. you should specify targetfile
name exactly. since you are choise resume / multipart download.
application unable to control file name choise / creation.
- Parameters:
info - targetFile - stop - notify -
calcName
public static File calcName(URL source,
File target)
calcName
public static File calcName(DownloadInfo info,
File target)
download
public void download()
download
public void download(AtomicBoolean stop,
Runnable notify)
getInfo
public DownloadInfo getInfo()
getHtml
public static String getHtml(URL source)
getHtml
public static String getHtml(URL source,
WGet.HtmlLoader load,
AtomicBoolean stop)
Copyright © 2012. All Rights Reserved.