public class DownloadInfo extends Object implements Serializable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
DownloadInfo.Builder
Download info builder.
|
static interface |
DownloadInfo.DownloadStatus
Download info status.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
STATUS_COMPLETED |
static int |
STATUS_DOWNLOADING |
static int |
STATUS_ERROR |
static int |
STATUS_NONE |
static int |
STATUS_PAUSED |
static int |
STATUS_PREPARE_DOWNLOAD |
static int |
STATUS_REMOVED |
static int |
STATUS_WAIT |
| 构造器和说明 |
|---|
DownloadInfo() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
long |
getCreateAt() |
DownloadListener |
getDownloadListener() |
List<DownloadThreadInfo> |
getDownloadThreadInfos() |
DownloadException |
getException() |
int |
getId() |
String |
getPath() |
long |
getProgress() |
long |
getSize() |
int |
getStatus() |
int |
getSupportRanges() |
String |
getUri() |
int |
hashCode() |
boolean |
isPause() |
boolean |
isSupportRanges() |
void |
setCreateAt(long createAt) |
void |
setDownloadListener(DownloadListener downloadListener) |
void |
setDownloadThreadInfos(List<DownloadThreadInfo> downloadThreadInfos) |
void |
setException(DownloadException exception) |
void |
setId(int id) |
void |
setPath(String path) |
void |
setProgress(long progress) |
void |
setSize(long size) |
void |
setStatus(int status) |
void |
setSupportRanges(boolean supportRanges) |
void |
setSupportRanges(int supportRanges) |
void |
setUri(String uri) |
public static final int STATUS_NONE
public static final int STATUS_PREPARE_DOWNLOAD
public static final int STATUS_DOWNLOADING
public static final int STATUS_WAIT
public static final int STATUS_PAUSED
public static final int STATUS_COMPLETED
public static final int STATUS_ERROR
public static final int STATUS_REMOVED
public DownloadException getException()
public void setException(DownloadException exception)
public long getCreateAt()
public void setCreateAt(long createAt)
public String getUri()
public void setUri(String uri)
public String getPath()
public void setPath(String path)
public long getSize()
public void setSize(long size)
public long getProgress()
public void setProgress(long progress)
public DownloadListener getDownloadListener()
public void setDownloadListener(DownloadListener downloadListener)
public int getStatus()
public void setStatus(int status)
public int getId()
public void setId(int id)
public int getSupportRanges()
public void setSupportRanges(int supportRanges)
public boolean isSupportRanges()
public void setSupportRanges(boolean supportRanges)
public List<DownloadThreadInfo> getDownloadThreadInfos()
public void setDownloadThreadInfos(List<DownloadThreadInfo> downloadThreadInfos)
public boolean isPause()