|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.sf.bloof.util.FileDownload
Downloads a file
| Constructor Summary | |
FileDownload(java.net.URL aSource,
java.io.File aDestFile)
Main constructor |
|
| Method Summary | |
void |
addDownloadListener(FileDownloadListener aFlistener)
Registers a Listener for the download |
void |
startDownload()
Downloads the file and saves it to the destination file if the download fails or is interrupted, the destination file is deleted |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileDownload(java.net.URL aSource,
java.io.File aDestFile)
aSource - URL of the source fileaDestFile - destination file| Method Detail |
public void addDownloadListener(FileDownloadListener aFlistener)
aFlistener - the listener
public void startDownload()
throws java.io.IOException
java.io.IOException - if an error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||