public class DirectRange extends Direct
| Constructor and Description |
|---|
DirectRange(DownloadInfo info,
File target) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canResume(DownloadInfo info,
File targetFile)
check existing file for download resume.
|
void |
download(AtomicBoolean stop,
Runnable notify) |
void |
downloadPart(RetryWrap.Wrap w,
DownloadInfo info,
AtomicBoolean stop,
Runnable notify) |
public DirectRange(DownloadInfo info, File target)
public void downloadPart(RetryWrap.Wrap w, DownloadInfo info, AtomicBoolean stop, Runnable notify) throws IOException
IOExceptionpublic void download(AtomicBoolean stop, Runnable notify)
public static boolean canResume(DownloadInfo info, File targetFile)
info - download infotargetFile - target fileCopyright © 2017. All rights reserved.