public class DownloadResource extends Object implements Serializable
限定符和类型 | 字段和说明 |
---|---|
protected long |
completeSize |
protected String |
confFile |
protected DownloadTask |
downloadTask |
protected String |
exception |
protected long |
fileLength |
protected String |
fileName |
protected String |
key |
protected String |
localPath |
protected String |
object |
protected int |
progress |
protected String |
sourceFile |
protected long |
speed |
protected int |
status |
protected String |
url |
protected HashMap<Object,BaseViewHolder> |
viewHolders |
构造器和说明 |
---|
DownloadResource() |
DownloadResource(String localPath,
String url,
String fileName) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(Object o) |
long |
getCompleteSize() |
String |
getConfFile() |
DownloadTask |
getDownloadTask() |
String |
getException() |
long |
getFileLength() |
String |
getFileName() |
String |
getKey() |
String |
getLocalPath() |
String |
getObject() |
int |
getProgress() |
String |
getSourceFile() |
long |
getSpeed() |
int |
getStatus() |
String |
getUrl() |
BaseViewHolder |
getViewHolder(Object obj) |
int |
hashCode() |
void |
reset() |
void |
setCompleteSize(long completeSize) |
void |
setConfFile(String confFile) |
void |
setDownloadTask(DownloadTask downloadTask) |
void |
setException(String exception) |
void |
setFileLength(long fileLength) |
void |
setFileName(String fileName) |
void |
setKey(String key) |
void |
setLocalPath(String localPath) |
void |
setObject(String object) |
void |
setProgress(int progress) |
void |
setSourceFile(String sourceFile) |
void |
setSpeed(long speed) |
void |
setStatus(int status) |
void |
setUrl(String url) |
void |
setViewHolder(Object obj,
BaseViewHolder viewHolder) |
protected String url
protected String fileName
protected long fileLength
protected long completeSize
protected int progress
protected long speed
protected int status
protected String localPath
protected String exception
protected String sourceFile
protected String confFile
protected String object
protected String key
protected transient DownloadTask downloadTask
protected transient HashMap<Object,BaseViewHolder> viewHolders
public BaseViewHolder getViewHolder(Object obj)
public void setViewHolder(Object obj, BaseViewHolder viewHolder)
public long getCompleteSize()
public void setCompleteSize(long completeSize)
public long getFileLength()
public void setFileLength(long fileLength)
public int getProgress()
public void setProgress(int progress)
public long getSpeed()
public void setSpeed(long speed)
public int getStatus()
public void setStatus(int status)
public String getUrl()
public void setUrl(String url)
public String getFileName()
public void setFileName(String fileName)
public String getLocalPath()
public void setLocalPath(String localPath)
public String getException()
public void setException(String exception)
public String getSourceFile()
public void setSourceFile(String sourceFile)
public String getConfFile()
public void setConfFile(String confFile)
public String getObject()
public void setObject(String object)
public DownloadTask getDownloadTask()
public void setDownloadTask(DownloadTask downloadTask)
public String getKey()
public void setKey(String key)
public void reset()