Package net.sourceforge.jnlp.runtime
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMapping(URL remoteUrl, URL localUrl) static CachedJarFileCallbackstatic voidregister()Registers this as URLJarFile callback.
-
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
-