DownloadInfo

public class DownloadInfo

保存下载文件信息类

Author

lvhongzhen

Constructors

Link copied to clipboard
public void DownloadInfo()
public void DownloadInfo(String filePath, String url, String tag)

Types

Link copied to clipboard
public class SliceInfo

Properties

Link copied to clipboard
public final static Creator<DownloadInfo> CREATOR
Link copied to clipboard
public String filePath
Link copied to clipboard
public String infoPath
Link copied to clipboard
public boolean isDownLoading
Link copied to clipboard
public long length
Link copied to clipboard
Link copied to clipboard
public List<String> sliceInfoPathList
Link copied to clipboard
public String tag
Link copied to clipboard
public String url

Functions

Link copied to clipboard
Link copied to clipboard
public void addSliceInfoPath(String infoPath)
Link copied to clipboard
public long currentFileLength()
Link copied to clipboard
public int currentProgress()
Link copied to clipboard
public int describeContents()
Link copied to clipboard
public String getFilePath()
获取文件名
Link copied to clipboard
public String getInfoPath()
Link copied to clipboard
public long getLength()
获取文件大小
Link copied to clipboard
Link copied to clipboard
public List<String> getSliceInfoPathList()
Link copied to clipboard
public String getTag()
Link copied to clipboard
public String getUrl()
获取下载地址
Link copied to clipboard
public boolean isDownLoading()
获取是否正在下载
Link copied to clipboard
public boolean isFinished()
获取下载已完成进度
Link copied to clipboard
public void setDownLoading(boolean downLoading)
设置是否正在下载
Link copied to clipboard
public void setFilePath(String filePath)
设置文件名
Link copied to clipboard
public void setInfoPath(String infoPath)
Link copied to clipboard
public void setLength(long length)
设置文件大小
Link copied to clipboard
public void setTag(String tag)
Link copied to clipboard
public void setUrl(String url)
设置下载地址
Link copied to clipboard
public void writeToParcel(Parcel dest, int flags)