| |
|
| com.sun.jump.module.download.JUMPDownloader
All known Subclasses: com.sun.jumpimpl.module.download.DownloaderImpl,
JUMPDownloader | public interface JUMPDownloader (Code) | | JUMPDownloader encapsulates the logic of downloading
the application content using some download protocol. The download
process is initiated by calling
JUMPDownloader.start(JUMPDownloadDestination)
method. The download operation can be cancelled by calling
JUMPDownloader.cancel method. The JUMPDownloadModule is responsible
for creating JUMPDownloader instances.
|
cancel | public void cancel()(Code) | | Cancels the download action. This method does not do anything if
the download action has not been started.
|
getDescriptor | public JUMPDownloadDescriptor getDescriptor()(Code) | | Returns the download descriptor that is associated with the
download action.
|
setProgressListener | public void setProgressListener(JUMPDownloadProgressListener listener)(Code) | | Sets the progress listener. The frequency in which the
listener's dataDownloaded() would be called is
left to the implementation of the download action. To control the
frequency, use the alternate form of the API.
Parameters: listener - the listener that is interested in the download progress. |
setProgressListener | public void setProgressListener(JUMPDownloadProgressListener listener, int updatePercent)(Code) | | Sets the progress listener with an update frequency.
Parameters: listener - the listener that is interested in the download progress. Parameters: updatePercent - indicates how frequently the listener'sdataDownloaded() method should becalled (as a percentage of the data downloaded).So a value of 1 causes the listener to be invoked everytime one more percent of the data is downloaded |
|
|
|