|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ResourceDownloader
| Field Summary | |
|---|---|
static String |
PR_STRING_CONTENT_TYPE
|
| Method Summary | |
|---|---|
void |
addListener(ResourceDownloaderListener l)
|
void |
asyncDownload()
Asynchronously download. |
void |
cancel()
Cancel the download. |
InputStream |
download()
Synchronously download. |
ResourceDownloader |
getClone()
|
String |
getName()
Get a sensible name for the download based on its details (e.g. |
Object |
getProperty(String name)
Warning! URL response properties have a type of 'List of String' |
long |
getSize()
Attempts to get the size of the download. |
boolean |
isCancelled()
|
void |
removeListener(ResourceDownloaderListener l)
|
void |
reportActivity(String activity)
|
void |
setProperty(String name,
Object value)
|
| Field Detail |
|---|
static final String PR_STRING_CONTENT_TYPE
| Method Detail |
|---|
String getName()
InputStream download()
throws ResourceDownloaderException
ResourceDownloaderExceptionvoid asyncDownload()
long getSize()
throws ResourceDownloaderException
Note: You must not call this method from the reportActivity callback method.
ResourceDownloaderException
void setProperty(String name,
Object value)
throws ResourceDownloaderException
ResourceDownloaderException
Object getProperty(String name)
throws ResourceDownloaderException
name -
ResourceDownloaderExceptionvoid cancel()
boolean isCancelled()
ResourceDownloader getClone()
void reportActivity(String activity)
void addListener(ResourceDownloaderListener l)
void removeListener(ResourceDownloaderListener l)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||