public class Downloader
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
Downloader.DownloadInfo |
static interface |
Downloader.IDownlodListener |
限定符和类型 | 字段和说明 |
---|---|
static char[] |
HEXDIGIT |
构造器和说明 |
---|
Downloader(Downloader.DownloadInfo info,
Downloader.IDownlodListener listener) |
限定符和类型 | 方法和说明 |
---|---|
void |
cancel() |
void |
enableContinuousDownload(java.lang.Boolean enabled) |
static java.lang.String |
getMD5(java.io.File file) |
DownloadStatus |
getStatus() |
void |
setHttpRecvTimeout(int timeout) |
void |
setRertyParams(int retryCnt,
int retryIntervalInS) |
void |
startDownload() |
static java.lang.String |
toHexString(byte[] data) |
static java.lang.String |
toHexString(byte[] data,
int groupSize) |
void |
tryReDownload() |
public Downloader(Downloader.DownloadInfo info, Downloader.IDownlodListener listener)
public void setHttpRecvTimeout(int timeout)
public void setRertyParams(int retryCnt, int retryIntervalInS)
public void tryReDownload()
public void enableContinuousDownload(java.lang.Boolean enabled)
public void startDownload()
public DownloadStatus getStatus()
public void cancel()
public static java.lang.String getMD5(java.io.File file)
public static final java.lang.String toHexString(byte[] data)
public static final java.lang.String toHexString(byte[] data, int groupSize)