# DownloadInfo

public class DownloadInfo

保存下载文件信息类

#### Author

lvhongzhen

## Constructors

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

## Types

SliceInfo
Link copied to clipboard
public class SliceInfo

## Properties

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

## Functions

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