程序包 org.anyline.net

接口 DownloadProgress

所有已知实现类:
DefaultProgress

public interface DownloadProgress
  • 方法详细资料

    • init

      void init(String url, String thread, long total, long past)
      加载历史进度
      参数:
      url - url
      thread - 线程号
      total - 本次需下载
      past - 历史进度
    • step

      void step(String url, String thread, long finish)
      每次下载长度
      参数:
      url - url
      thread - 线程号
      finish - 本次循环下载长度
    • finish

      void finish(String url, String thread)
      下载完成
      参数:
      url - url
      thread - thread
    • error

      void error(String url, String thread, int code, String message)
      下载异常
      参数:
      url - url
      thread - thread
      code - code
      message - message
    • setErrorListener

      void setErrorListener(DownloadListener listener)
    • setFinishListener

      void setFinishListener(DownloadListener listener)
    • getAction

      int getAction()
    • stop

      void stop()