public class WGet extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
WGet.HtmlLoader |
| Constructor and Description |
|---|
WGet(DownloadInfo info,
File targetFile)
application controlled download / resume.
|
WGet(URL source,
File target)
download with events control.
|
| Modifier and Type | Method and Description |
|---|---|
static File |
calcName(DownloadInfo info,
File target) |
static File |
calcName(URL source,
File target) |
void |
download() |
void |
download(AtomicBoolean stop,
Runnable notify) |
static String |
getHtml(DownloadInfo info) |
static String |
getHtml(DownloadInfo source,
WGet.HtmlLoader load,
AtomicBoolean stop) |
static String |
getHtml(HttpURLConnection conn,
AtomicBoolean stop) |
static String |
getHtml(URL source) |
static String |
getHtml(URL source,
WGet.HtmlLoader load,
AtomicBoolean stop) |
DownloadInfo |
getInfo() |
public static final String UTF8
public WGet(URL source, File target)
source - target - public WGet(DownloadInfo info, File targetFile)
info - download infotargetFile - target filespublic static File calcName(DownloadInfo info, File target)
public void download()
public void download(AtomicBoolean stop, Runnable notify)
public DownloadInfo getInfo()
public static String getHtml(DownloadInfo info)
public static String getHtml(URL source, WGet.HtmlLoader load, AtomicBoolean stop)
public static String getHtml(DownloadInfo source, WGet.HtmlLoader load, AtomicBoolean stop)
public static String getHtml(HttpURLConnection conn, AtomicBoolean stop) throws IOException
IOExceptionCopyright © 2016. All rights reserved.