类 AbstractDownloadFileThread

java.lang.Object
net.jlxxw.http.spider.file.thread.AbstractDownloadFileThread
所有已实现的接口:
Callable<FileInfo>

public abstract class AbstractDownloadFileThread extends Object implements Callable<FileInfo>
抽象文件下载线程
作者:
chunyang.leng
  • 构造器详细资料

    • AbstractDownloadFileThread

      public AbstractDownloadFileThread()
  • 方法详细资料

    • littleFileThread

      public static AbstractDownloadFileThread littleFileThread(ProxyRestTemplatePool proxyRestTemplatePool, org.springframework.http.HttpHeaders header, FileInfo fileInfo)
      创建小文件下载线程
      参数:
      header - 请求头
      fileInfo - 文件信息
      返回:
    • bigFileThread

      public static AbstractDownloadFileThread bigFileThread(ProxyRestTemplatePool proxyRestTemplatePool, org.springframework.http.HttpHeaders header, FileInfo fileInfo, int index, long start, long end)
      创建下载大文件线程
      参数:
      header - 请求头
      fileInfo - 文件信息
      index - 分片索引
      start - 开始索引
      end - 结束索引