1 7 8 package javax.jnlp; 9 10 import java.net.URL; 11 import java.io.IOException; 12 13 23 24 public interface DownloadService { 25 26 39 public boolean isResourceCached(URL ref, String version); 40 41 51 public boolean isPartCached(String part); 52 53 63 public boolean isPartCached(String [] parts); 64 65 80 public boolean isExtensionPartCached(URL ref, String version, String part); 81 82 97 public boolean isExtensionPartCached(URL ref, String version, String [] parts); 98 99 111 public void loadResource(URL ref, String version, DownloadServiceListener progress) throws IOException; 112 113 122 public void loadPart(String part, DownloadServiceListener progress) throws IOException; 123 124 133 public void loadPart(String [] parts, DownloadServiceListener progress) throws IOException; 134 135 150 public void loadExtensionPart(URL ref, String version, String part, DownloadServiceListener progress) 151 throws IOException; 152 153 168 public void loadExtensionPart(URL ref, String version, String [] parts, DownloadServiceListener progress) 169 throws IOException; 170 171 180 public void removeResource(URL ref, String version) throws IOException; 181 182 188 public void removePart(String part) throws IOException; 189 190 196 public void removePart(String [] parts) throws IOException; 197 198 209 public void removeExtensionPart(URL ref, String version, String part) throws IOException; 210 211 222 public void removeExtensionPart(URL ref, String version, String [] parts) throws IOException; 223 224 232 public DownloadServiceListener getDefaultProgressWindow(); 233 234 } 235 | Popular Tags |