public static class FileProgress.Adapter extends java.lang.Object implements FileProgress
FileProgress.Adapter| Constructor and Description |
|---|
Adapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
cantDownloadFile()
Notifies progress that current retriever can't download this file
|
void |
errorOccurred(java.lang.Throwable e)
Notifies progress that an error occurred during download
|
void |
fileDownloaded()
Notifies progress that this file is downloaded
|
long |
getExpectedLength() |
long |
getTransferred() |
boolean |
isFinished() |
void |
setExpectedLength(long expectedLength)
Sets expected total size
|
void |
transferred(long count)
Increases total downloaded size by count
|
public void transferred(long count)
FileProgresstransferred in interface FileProgresscount - downloaded bytespublic void setExpectedLength(long expectedLength)
FileProgresssetExpectedLength in interface FileProgressexpectedLength - - expected length of the filepublic long getTransferred()
getTransferred in interface FileProgresspublic boolean isFinished()
isFinished in interface FileProgresspublic long getExpectedLength()
getExpectedLength in interface FileProgresspublic void cantDownloadFile()
FileProgresscantDownloadFile in interface FileProgresspublic void fileDownloaded()
FileProgressfileDownloaded in interface FileProgresspublic void errorOccurred(java.lang.Throwable e)
FileProgresserrorOccurred in interface FileProgresse - - an error occurred during download