public class UrlCache
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
antiJarLocking |
static java.io.File |
cacheDir |
Constructor and Description |
---|
UrlCache() |
Modifier and Type | Method and Description |
---|---|
java.net.URL[] |
cacheUrls(java.lang.String appId,
java.net.URL[] urls) |
static void |
deleteDir(java.io.File dir)
Delete the specified directory, including all of its contents and
subdirectories recursively.
|
java.io.File |
getUrlCachedName(java.lang.String appId,
java.net.URL url) |
java.net.URL |
getUrlKeyCached(java.lang.String appId,
java.io.File file) |
boolean |
isUrlCached(java.lang.String appId,
java.net.URL url) |
void |
releaseUrls(java.lang.String appId) |
public static final boolean antiJarLocking
public static final java.io.File cacheDir
public java.net.URL[] cacheUrls(java.lang.String appId, java.net.URL[] urls)
public void releaseUrls(java.lang.String appId)
public java.io.File getUrlCachedName(java.lang.String appId, java.net.URL url)
public boolean isUrlCached(java.lang.String appId, java.net.URL url)
public java.net.URL getUrlKeyCached(java.lang.String appId, java.io.File file)
public static void deleteDir(java.io.File dir)
dir
- File object representing the directory to be deleted