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, newInstance
defineClass, defineClass
clearAssertionStatus, 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, setSigners
public static ClassLoader getNestedJarClassLoader(ClassLoader extcl) throws IOException
extcl
- Classloader to use as the parent classloader.IOException
public static boolean isRunningUnderWebStart()
protected Class findClass(String name) throws ClassNotFoundException
findClass
in class URLClassLoader
ClassNotFoundException
public 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 URLClassLoader
public InputStream getResourceAsStream(String name)
getResourceAsStream
in class URLClassLoader
Copyright © 2003, 2023, Oracle and/or its affiliates.