程序包 org.anyline.net
接口 DownloadProgress
-
- 所有已知实现类:
DefaultProgress
public interface DownloadProgress
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voiderror(String url, String thread, int code, String message)下载异常voidfinish(String url, String thread)下载完成intgetAction()voidinit(String url, String thread, long total, long past)加载历史进度voidsetErrorListener(DownloadListener listener)voidsetFinishListener(DownloadListener listener)voidstep(String url, String thread, long finish)每次下载长度voidstop()
-
-
-
方法详细资料
-
init
void init(String url, String thread, long total, long past)
加载历史进度- 参数:
url- urlthread- 线程号total- 本次需下载past- 历史进度
-
step
void step(String url, String thread, long finish)
每次下载长度- 参数:
url- urlthread- 线程号finish- 本次循环下载长度
-
error
void error(String url, String thread, int code, String message)
下载异常- 参数:
url- urlthread- threadcode- codemessage- message
-
setErrorListener
void setErrorListener(DownloadListener listener)
-
setFinishListener
void setFinishListener(DownloadListener listener)
-
getAction
int getAction()
-
stop
void stop()
-
-