com.github.axet.wget
Class DirectSingle
java.lang.Object
com.github.axet.wget.Direct
com.github.axet.wget.DirectSingle
public class DirectSingle
- extends Direct
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectSingle
public DirectSingle(DownloadInfo info,
File target)
- Parameters:
info - download file informationtarget - target filestop - multithread stop commandnotify - progress notify call
download
public void download(AtomicBoolean stop,
Runnable notify)
- Specified by:
download in class Direct
canResume
public static boolean canResume(DownloadInfo info,
File targetFile)
- check existing file for download resume. for single download it will
check file dose not exist or zero size. so we can resume download.
- Parameters:
info - targetFile -
- Returns:
- return true - if all ok, false - if download can not be restored.
Copyright © 2012. All Rights Reserved.