class XDownloadService
extends java.lang.Object
implements javax.jnlp.DownloadService
| Modifier | Constructor and Description |
|---|---|
protected |
XDownloadService() |
| Modifier and Type | Method and Description |
|---|---|
javax.jnlp.DownloadServiceListener |
getDefaultProgressWindow()
Returns a listener that will automatically display download
progress to the user.
|
boolean |
isExtensionPartCached(java.net.URL ref,
java.lang.String version,
java.lang.String part)
Returns whether the part in an extension (specified by the
url and version) is cached locally.
|
boolean |
isExtensionPartCached(java.net.URL ref,
java.lang.String version,
java.lang.String[] parts)
Returns whether the parts in an extension (specified by the
url and version) are cached locally.
|
boolean |
isPartCached(java.lang.String part)
Returns whether the part of the calling application is cached
locally.
|
boolean |
isPartCached(java.lang.String[] parts)
Returns whether all of the parts of the calling application
are cached locally.
|
boolean |
isResourceCached(java.net.URL ref,
java.lang.String version)
Returns whether the resource is cached locally.
|
void |
loadExtensionPart(java.net.URL ref,
java.lang.String version,
java.lang.String[] parts,
javax.jnlp.DownloadServiceListener progress)
Downloads the parts of an extension.
|
void |
loadExtensionPart(java.net.URL ref,
java.lang.String version,
java.lang.String part,
javax.jnlp.DownloadServiceListener progress)
Downloads a part of an extension.
|
void |
loadPart(java.lang.String[] parts,
javax.jnlp.DownloadServiceListener progress)
Downloads the parts.
|
void |
loadPart(java.lang.String part,
javax.jnlp.DownloadServiceListener progress)
Downloads the part.
|
void |
loadResource(java.net.URL ref,
java.lang.String version,
javax.jnlp.DownloadServiceListener progress)
Downloads a resource.
|
void |
removeExtensionPart(java.net.URL ref,
java.lang.String version,
java.lang.String part)
Notify the system that an extension's part is no longer
important to cache.
|
void |
removeExtensionPart(java.net.URL ref,
java.lang.String version,
java.lang.String[] parts)
Notify the system that an extension's parts are no longer
important to cache.
|
void |
removePart(java.lang.String part)
Notifies the system that a part is no longer important to
cache.
|
void |
removePart(java.lang.String[] parts)
Notifies the system that the parts is no longer important to
cache.
|
void |
removeResource(java.net.URL ref,
java.lang.String version)
Notifies the system that the resource is no longer important
to cache.
|
public javax.jnlp.DownloadServiceListener getDefaultProgressWindow()
getDefaultProgressWindow in interface javax.jnlp.DownloadServicepublic boolean isExtensionPartCached(java.net.URL ref,
java.lang.String version,
java.lang.String part)
isExtensionPartCached in interface javax.jnlp.DownloadServicepublic boolean isExtensionPartCached(java.net.URL ref,
java.lang.String version,
java.lang.String[] parts)
isExtensionPartCached in interface javax.jnlp.DownloadServicepublic boolean isPartCached(java.lang.String part)
isPartCached in interface javax.jnlp.DownloadServicepublic boolean isPartCached(java.lang.String[] parts)
isPartCached in interface javax.jnlp.DownloadServicepublic boolean isResourceCached(java.net.URL ref,
java.lang.String version)
isResourceCached in interface javax.jnlp.DownloadServicepublic void loadExtensionPart(java.net.URL ref,
java.lang.String version,
java.lang.String[] parts,
javax.jnlp.DownloadServiceListener progress)
throws java.io.IOException
loadExtensionPart in interface javax.jnlp.DownloadServicejava.io.IOExceptionpublic void loadExtensionPart(java.net.URL ref,
java.lang.String version,
java.lang.String part,
javax.jnlp.DownloadServiceListener progress)
throws java.io.IOException
loadExtensionPart in interface javax.jnlp.DownloadServicejava.io.IOExceptionpublic void loadPart(java.lang.String[] parts,
javax.jnlp.DownloadServiceListener progress)
throws java.io.IOException
loadPart in interface javax.jnlp.DownloadServicejava.io.IOExceptionpublic void loadPart(java.lang.String part,
javax.jnlp.DownloadServiceListener progress)
throws java.io.IOException
loadPart in interface javax.jnlp.DownloadServicejava.io.IOExceptionpublic void loadResource(java.net.URL ref,
java.lang.String version,
javax.jnlp.DownloadServiceListener progress)
throws java.io.IOException
loadResource in interface javax.jnlp.DownloadServicejava.io.IOExceptionpublic void removeExtensionPart(java.net.URL ref,
java.lang.String version,
java.lang.String part)
throws java.io.IOException
removeExtensionPart in interface javax.jnlp.DownloadServicejava.io.IOExceptionpublic void removeExtensionPart(java.net.URL ref,
java.lang.String version,
java.lang.String[] parts)
throws java.io.IOException
removeExtensionPart in interface javax.jnlp.DownloadServicejava.io.IOExceptionpublic void removePart(java.lang.String part)
throws java.io.IOException
removePart in interface javax.jnlp.DownloadServicejava.io.IOExceptionpublic void removePart(java.lang.String[] parts)
throws java.io.IOException
removePart in interface javax.jnlp.DownloadServicejava.io.IOExceptionpublic void removeResource(java.net.URL ref,
java.lang.String version)
throws java.io.IOException
removeResource in interface javax.jnlp.DownloadServicejava.io.IOException