Package io.rong.imlib.model
        Class DownloadInfo
- 
                    
                    - All Implemented Interfaces:
 
 public class DownloadInfoClass for saving download file information 
- lvhongzhen 
 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public classDownloadInfo.SliceInfo
 - 
                                
                            
                                Field SummaryFields Modifier and Type Field Description public Stringtagpublic StringfilePathpublic StringinfoPathpublic Stringurlpublic longlengthpublic booleanisDownLoadingpublic List<DownloadInfo.SliceInfo>sliceInfoListpublic List<String>sliceInfoPathListpublic final static Creator<DownloadInfo>CREATOR
 - 
                                
                            
                                Constructor SummaryConstructors Constructor Description DownloadInfo()DownloadInfo(String filePath, String url, String tag)
 - 
                                
                            
                                Method SummaryModifier and Type Method Description StringgetTag()voidsetTag(String tag)StringgetFilePath()Get the file name voidsetFilePath(String filePath)Sets the file name StringgetInfoPath()voidsetInfoPath(String infoPath)StringgetUrl()Get Download URL voidsetUrl(String url)Set the download URL longgetLength()Get file size voidsetLength(long length)Set file size booleanisDownLoading()Get whether downloading is in progress voidsetDownLoading(boolean downLoading)Sets whether the download is in progress List<DownloadInfo.SliceInfo>getSliceInfoList()List<String>getSliceInfoPathList()voidwriteToParcel(Parcel dest, int flags)intdescribeContents()voidaddSliceInfo(DownloadInfo.SliceInfo info)voidaddSliceInfoPath(String infoPath)booleanisFinished()Get the download progress longcurrentFileLength()intcurrentProgress()- 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        getTagString getTag() 
 - 
                                        setTagvoid setTag(String tag) 
 - 
                                        getFilePathString getFilePath() Get the file name - Returns:
- The file name 
 
 - 
                                        setFilePathvoid setFilePath(String filePath) Sets the file name - Parameters:
- filePath- The file name
 
 - 
                                        getInfoPathString getInfoPath() 
 - 
                                        setInfoPathvoid setInfoPath(String infoPath) 
 - 
                                        getUrlString getUrl() Get Download URL - Returns:
- Download URL 
 
 - 
                                        setUrlvoid setUrl(String url) Set the download URL - Parameters:
- url- The download URL
 
 - 
                                        getLengthlong getLength() Get file size - Returns:
- File size 
 
 - 
                                        setLengthvoid setLength(long length) Set file size - Parameters:
- length- File size
 
 - 
                                        isDownLoadingboolean isDownLoading() Get whether downloading is in progress - Returns:
- Indicates whether downloading is in progress 
 
 - 
                                        setDownLoadingvoid setDownLoading(boolean downLoading) Sets whether the download is in progress - Parameters:
- downLoading- Indicates whether the download is in progress
 
 - 
                                        getSliceInfoListList<DownloadInfo.SliceInfo> getSliceInfoList() 
 - 
                                        getSliceInfoPathListList<String> getSliceInfoPathList() 
 - 
                                        writeToParcelvoid writeToParcel(Parcel dest, int flags) 
 - 
                                        describeContentsint describeContents() 
 - 
                                        addSliceInfovoid addSliceInfo(DownloadInfo.SliceInfo info) 
 - 
                                        addSliceInfoPathvoid addSliceInfoPath(String infoPath) 
 - 
                                        isFinishedboolean isFinished() Get the download progress - Returns:
- Indicates the download progress that has been completed 
 
 - 
                                        currentFileLengthlong currentFileLength() 
 - 
                                        currentProgressint currentProgress() 
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-