程序包 org.anyline.net
类 DefaultProgress
java.lang.Object
org.anyline.net.DefaultProgress
- 所有已实现的接口:
DownloadProgress
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void下载异常void设置已完成intvoid加载历史进度voidsetErrorListener(DownloadListener listener) voidsetFinishListener(DownloadListener listener) void每次下载长度voidstop()
-
构造器详细资料
-
DefaultProgress
public DefaultProgress() -
DefaultProgress
-
-
方法详细资料
-
init
从接口复制的说明:DownloadProgress加载历史进度- 指定者:
init在接口中DownloadProgress- 参数:
url- urlthread- 线程号total- 本次需下载past- 历史进度
-
step
从接口复制的说明:DownloadProgress每次下载长度- 指定者:
step在接口中DownloadProgress- 参数:
url- urlthread- 线程号finish- 本次循环下载长度
-
finish
设置已完成- 指定者:
finish在接口中DownloadProgress- 参数:
url- urlthread- thread
-
error
从接口复制的说明:DownloadProgress下载异常- 指定者:
error在接口中DownloadProgress- 参数:
url- urlthread- threadcode- codemessage- message
-
setErrorListener
- 指定者:
setErrorListener在接口中DownloadProgress
-
setFinishListener
- 指定者:
setFinishListener在接口中DownloadProgress
-
getAction
public int getAction()- 指定者:
getAction在接口中DownloadProgress
-
stop
public void stop()- 指定者:
stop在接口中DownloadProgress
-