Class CachedJarFileCallback
java.lang.Object
net.sourceforge.jnlp.runtime.CachedJarFileCallback
Invoked by URLJarFile to get a JarFile corresponding to a URL.
Large parts of this class are based on JarFileFactory and URLJarFile.
Hooked in reflectively: sun.net.www.protocol.jar.URLJarFileCallBack is gone in newer JDKs.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMapping(URL remoteUrl, URL localUrl) private JarFilecacheJarFile(URL url) static CachedJarFileCallbackstatic voidregister()Registers this as URLJarFile callback.
-
Field Details
-
LOG
-
INSTANCE
-
mapping
-
-
Constructor Details
-
CachedJarFileCallback
private CachedJarFileCallback()
-
-
Method Details
-
getInstance
-
addMapping
-
register
public static void register()Registers this as URLJarFile callback. No-op on JDKs without URLJarFileCallBack; remote jar: URLs are then fetched by the JDK itself, bypassing the ITW cache. -
retrieve
- Throws:
IOException
-
cacheJarFile
- Throws:
IOException
-