org.gudy.azureus2.plugins.utils.resourcedownloader
Interface ResourceDownloaderListener

All Known Implementing Classes:
ResourceDownloaderAdapter, ResourceDownloaderAlternateImpl, ResourceDownloaderMetaRefreshImpl, ResourceDownloaderRetryImpl, ResourceDownloaderTimeoutImpl, ResourceDownloaderTorrentImpl, SFPluginDetailsLoaderImpl, UpdateAutoDownloader, UpdateWindow, UPnPImpl

public interface ResourceDownloaderListener


Method Summary
 boolean completed(ResourceDownloader downloader, InputStream data)
           
 void failed(ResourceDownloader downloader, ResourceDownloaderException e)
           
 void reportActivity(ResourceDownloader downloader, String activity)
           
 void reportAmountComplete(ResourceDownloader downloader, long amount)
           
 void reportPercentComplete(ResourceDownloader downloader, int percentage)
           
 

Method Detail

reportPercentComplete

void reportPercentComplete(ResourceDownloader downloader,
                           int percentage)

reportAmountComplete

void reportAmountComplete(ResourceDownloader downloader,
                          long amount)

reportActivity

void reportActivity(ResourceDownloader downloader,
                    String activity)

completed

boolean completed(ResourceDownloader downloader,
                  InputStream data)
Parameters:
downloader -
data -
Returns:
return true if the completed download is OK. If false is returned then if there are alternative download sources they will be tried. If there are no other sources then the download will be "failed"

failed

void failed(ResourceDownloader downloader,
            ResourceDownloaderException e)