Public 成员函数 | |
| AbFileDownloader (Context context, DownFile downFile, int threadNum) | |
| void | download (AbDownloadProgressListener listener) throws Exception |
| AbDownloadThread | getThreads () |
| File | getSaveFile () |
| boolean | getFlag () |
| void | setFlag (boolean flag) |
静态 Public 成员函数 | |
| static Map< String, String > | getHttpResponseHeader (HttpURLConnection http) |
| static void | printResponseHeader (HttpURLConnection http) |
Protected 成员函数 | |
| synchronized void | update (DownFile downFile) |
Private 属性 | |
| Context | context |
| AbDownloadThread | threads |
| DownFileDao | mDownFileDao |
| File | saveFile |
| DownFile | mDownFile = null |
| int | mThreadNum = 1 |
| boolean | flag = true |
描述:多线程支持断点续传下载器.
|
inline |
构建文件下载器.
| context | the context |
| downFile | the down file |
| threadNum | 下载线程数 |
|
inline |
开始下载文件.
| listener | 监听下载数量的变化,如果不需要了解实时下载的数量,可以设置为null |
| Exception | the exception |
|
inline |
Gets the flag.
|
inlinestatic |
获取Http响应头字段.
| http | the http |
|
inline |
Gets the save file.
|
inline |
Gets the threads.
|
inlinestatic |
打印Http头字段.
| http | the http |
|
inline |
Sets the flag.
| flag | the new flag |
|
inlineprotected |
更新指定线程最后下载的位置.
| downFile | the down file |
|
private |
The context.
|
private |
The flag.
|
private |
The m down file.
|
private |
The m down file dao.
|
private |
The m thread num.
|
private |
本地保存文件.
|
private |
The threads.
1.8.8