|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.common.util.cache.TempJarCache
public class TempJarCache
Nested Class Summary | |
---|---|
static class |
TempJarCache.LoadState
|
Constructor Summary | |
---|---|
TempJarCache()
|
Method Summary | |
---|---|
static void |
addAll(Class<?> certClass,
URL jarURL)
Adds all types, native libraries, class files and other files (resources) if not yet added. |
static void |
addClasses(Class<?> certClass,
URL jarURL)
Adds native classes, if not yet added. |
static void |
addNativeLibs(Class<?> certClass,
URL jarURL)
Adds native libraries, if not yet added. |
static void |
addResources(Class<?> certClass,
URL jarURL)
Adds native resources, if not yet added. |
static void |
bootstrapNativeLib(Class<?> certClass,
String libBaseName,
URL jarURL)
Bootstrapping version extracting the JAR files root entry containing libBaseName, assuming it's a native library. |
static boolean |
checkClasses(URL jarURL,
TempJarCache.LoadState exp)
|
static boolean |
checkNativeLibs(URL jarURL,
TempJarCache.LoadState exp)
|
static boolean |
checkResources(URL jarURL,
TempJarCache.LoadState exp)
|
static String |
findLibrary(String libName)
|
static String |
findResource(String name)
TODO class access pending needs Classloader.defineClass(..) access, ie. |
static URL |
getResource(String name)
|
static TempFileCache |
getTempFileCache()
|
static boolean |
initSingleton()
Documented way to kick off static initialization. |
static boolean |
isInitialized()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TempJarCache()
Method Detail |
---|
public static boolean initSingleton()
public static boolean isInitialized()
public static TempFileCache getTempFileCache()
public static boolean checkNativeLibs(URL jarURL, TempJarCache.LoadState exp) throws IOException
IOException
public static boolean checkClasses(URL jarURL, TempJarCache.LoadState exp) throws IOException
IOException
public static boolean checkResources(URL jarURL, TempJarCache.LoadState exp) throws IOException
IOException
public static final void addNativeLibs(Class<?> certClass, URL jarURL) throws IOException, SecurityException
certClass
- if class is certified, the JarFile entries needs to have the same certificatejarURL
-
IOException
- if the jarURL
could not be loaded or a previous load attempt failed
SecurityException
public static final void addClasses(Class<?> certClass, URL jarURL) throws IOException, SecurityException
certClass
- if class is certified, the JarFile entries needs to have the same certificatejarFile
-
IOException
- if the jarURL
could not be loaded or a previous load attempt failed
SecurityException
public static final void addResources(Class<?> certClass, URL jarURL) throws IOException, SecurityException
certClass
- if class is certified, the JarFile entries needs to have the same certificatejarFile
-
IOException
- if the jarURL
could not be loaded or a previous load attempt failed
SecurityException
public static final void addAll(Class<?> certClass, URL jarURL) throws IOException, SecurityException
certClass
- if class is certified, the JarFile entries needs to have the same certificatejarFile
-
IOException
- if the jarURL
could not be loaded or a previous load attempt failed
SecurityException
public static final String findLibrary(String libName)
public static final String findResource(String name)
public static final URL getResource(String name) throws MalformedURLException
MalformedURLException
public static final void bootstrapNativeLib(Class<?> certClass, String libBaseName, URL jarURL) throws IOException, SecurityException
certClass
- if class is certified, the JarFile entries needs to have the same certificate
IOException
SecurityException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |