Java Reference
In-Depth Information
Downloads the given resource if the resource is mentioned in the JNLP file for the appli-
cation.
void removeExtensionPart(java.net.URL ref, String version, String part)
Removes the given part of the given extension from the cache, given that the part and the
extension are mentioned in the JNLP file for the application.
void removeExtensionPart(java.net.URL ref, String version, String[] parts)
Removes the given parts of the given extension from the cache, given that the parts and
the extension are correctly mentioned in the JNLP file for the application.
void removePart(String part)
If the part is correctly mentioned in the JNLP file, it removes it from the cache.
void removePart(String[] parts)
Removes the given parts from the cache.
void removeResource(java.net.URL ref, String version)
Removes the given resource from the cache.
Interface DownloadServiceListener
A listener specialized in downloading events in order to better track the downloading process.
void downloadFailed(java.net.URL url, String version)
A JNLP Client's DownloadService implementation should call this method if a down-
load fails or aborts unexpectedly.
void progress(java.net.URL url, String version, long readSoFar, long
total, int overallPercent)
A JNLP Client's DownloadService implementation has to call this method during a
download, repeatedly, to notice the download progress.
void upgradingArchive(java.net.URL url, String version, int patchPercent,
int overallPercent)
A JNLP Client's DownloadService implementation should call this method at least sev-
eral times when applying an incremental update to an in-cache resource by means of the
JARDiff protocol.
void validating(java.net.URL url, String version, long entry, long total,
int overallPercent)
Implementations of DownloadService should call this method at least several times
during validation of a download.
Search WWH ::




Custom Search