|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileDownloadListener
This listener interface provides all required methods to observe and manipulate the download process. Check out downloadFile methods from FileUtils to see how this listener can be used.
Method Summary | |
---|---|
void |
fileDownloaded(java.io.File file)
Called when file download completed. |
void |
fileDownloadFailed(java.lang.Throwable e)
Called when file download failed. |
void |
partDownloaded(int totalBytesDownloaded)
Called when another file part have been downloaded. |
boolean |
shouldStopDownload()
Returns whether download operation should stop or not. |
void |
sizeDetermined(int totalSize)
Called when remote file size retrieved. |
Method Detail |
---|
void sizeDetermined(int totalSize)
totalSize
- file sizevoid partDownloaded(int totalBytesDownloaded)
totalBytesDownloaded
- total bytes downloaded so farvoid fileDownloaded(java.io.File file)
file
- downloaded local filevoid fileDownloadFailed(java.lang.Throwable e)
e
- exception that caused download to failboolean shouldStopDownload()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |