|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ResourceDownloader
| Field Summary | |
|---|---|
static java.lang.String |
PR_BOOLEAN_ANONYMOUS
|
static java.lang.String |
PR_STRING_CONTENT_TYPE
|
| Method Summary | |
|---|---|
void |
addListener(ResourceDownloaderListener l)
|
void |
asyncDownload()
Asynchronously download. |
void |
cancel()
Cancel the download. |
java.io.InputStream |
download()
Synchronously download. |
ResourceDownloader |
getClone()
|
java.lang.String |
getName()
Get a sensible name for the download based on its details (e.g. |
java.lang.Object |
getProperty(java.lang.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(java.lang.String activity)
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
|
| Field Detail |
|---|
static final java.lang.String PR_STRING_CONTENT_TYPE
static final java.lang.String PR_BOOLEAN_ANONYMOUS
| Method Detail |
|---|
java.lang.String getName()
java.io.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(java.lang.String name,
java.lang.Object value)
throws ResourceDownloaderException
ResourceDownloaderException
java.lang.Object getProperty(java.lang.String name)
throws ResourceDownloaderException
name -
ResourceDownloaderExceptionvoid cancel()
boolean isCancelled()
ResourceDownloader getClone()
void reportActivity(java.lang.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 | ||||||||