public class NestedJarClassLoader extends URLClassLoader
| Modifier and Type | Method and Description |
|---|---|
protected Class |
findClass(String name) |
URL |
findResource(String name)
The URL returned is of the form
|
static ClassLoader |
getNestedJarClassLoader(ClassLoader extcl)
Get a newly-created NestedJarClassLoader.
|
InputStream |
getResourceAsStream(String name) |
static boolean |
isRunningUnderWebStart()
Returns whether the application center is running in WebStart
|
addURL, close, definePackage, findResources, getPermissions, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic static ClassLoader getNestedJarClassLoader(ClassLoader extcl) throws IOException
extcl - Classloader to use as the parent classloader.IOExceptionpublic static boolean isRunningUnderWebStart()
protected Class findClass(String name) throws ClassNotFoundException
findClass in class URLClassLoaderClassNotFoundExceptionpublic URL findResource(String name)
nestedjar://file:/C:/path/to/jarfile/pjfsamplesmain.jar!/pjfsamples.jar!/com/portal/app/testapp/images/SendMail16.gif. NestedJarURLConnection knows how to handle these URLs.
findResource in class URLClassLoaderpublic InputStream getResourceAsStream(String name)
getResourceAsStream in class URLClassLoaderCopyright © 2003, 2023, Oracle and/or its affiliates.