FileDocCategorySizeDatePackage
ResourceDownloader.javaAPI DocAzureus 3.0.3.42076Tue Jun 07 14:18:22 BST 2005org.gudy.azureus2.plugins.utils.resourcedownloader

ResourceDownloader

public interface ResourceDownloader
author
parg

Fields Summary
public static final String
PR_STRING_CONTENT_TYPE
Constructors Summary
Methods Summary
public voidaddListener(ResourceDownloaderListener l)

public voidasyncDownload()
Asynchronously download.

public voidcancel()
Cancel the download.

public java.io.InputStreamdownload()
Synchronously download. Events are still reported to listeners

return
throws
ResourceDownloaderException

public java.lang.StringgetName()
Get a sensible name for the download based on its details (e.g. URL)

return

public java.lang.ObjectgetProperty(java.lang.String name)

public longgetSize()
attempts to get the size of the download. Returns -1 if the size can't be determined

return
throws
ResourceDownloaderException

public booleanisCancelled()

public voidremoveListener(ResourceDownloaderListener l)

public voidreportActivity(java.lang.String activity)