synchronized
void
|
clearAssertionStatus()
Sets the default assertion status for this class loader to
false and discards any package defaults or class assertion
status settings associated with the class loader.
|
final
Class<?>
|
defineClass(String name, ByteBuffer b, ProtectionDomain protectionDomain)
Converts a java.nio.ByteBuffer ByteBuffer
into an instance of class Class,
with an optional ProtectionDomain.
|
final
Class<?>
|
defineClass(String name, byte[] b, int off, int len, ProtectionDomain protectionDomain)
Converts an array of bytes into an instance of class Class,
with an optional ProtectionDomain.
|
final
Class<?>
|
defineClass(String name, byte[] b, int off, int len)
Converts an array of bytes into an instance of class Class.
|
final
Class<?>
|
defineClass(byte[] b, int off, int len)
|
Package
|
definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase)
Defines a package by name in this ClassLoader.
|
Class<?>
|
findClass(String name)
|
String
|
findLibrary(String libname)
Returns the absolute path name of a native library.
|
final
Class<?>
|
findLoadedClass(String name)
Returns the class with the given binary name if this
loader has been recorded by the Java virtual machine as an initiating
loader of a class with that binary name.
|
URL
|
findResource(String name)
Finds the resource with the given name.
|
Enumeration<URL>
|
findResources(String name)
Returns an enumeration of URL objects
representing all the resources with the given name.
|
final
Class<?>
|
findSystemClass(String name)
Finds a class with the specified binary name,
loading it if necessary.
|
Package
|
getPackage(String name)
Returns a Package that has been defined by this class loader
or any of its ancestors.
|
Package[]
|
getPackages()
Returns all of the Packages defined by this class loader and
its ancestors.
|
final
ClassLoader
|
getParent()
Returns the parent class loader for delegation.
|
URL
|
getResource(String name)
Finds the resource with the given name.
|
InputStream
|
getResourceAsStream(String name)
Returns an input stream for reading the specified resource.
|
Enumeration<URL>
|
getResources(String name)
Finds all the resources with the given name.
|
static
ClassLoader
|
getSystemClassLoader()
Returns the system class loader for delegation.
|
static
URL
|
getSystemResource(String name)
Find a resource of the specified name from the search path used to load
classes.
|
static
InputStream
|
getSystemResourceAsStream(String name)
Open for reading, a resource of the specified name from the search path
used to load classes.
|
static
Enumeration<URL>
|
getSystemResources(String name)
Finds all resources of the specified name from the search path used to
load classes.
|
synchronized
Class<?>
|
loadClass(String name, boolean resolve)
|
Class<?>
|
loadClass(String name)
|
final
void
|
resolveClass(Class<?> c)
Links the specified class.
|
synchronized
void
|
setClassAssertionStatus(String className, boolean enabled)
Sets the desired assertion status for the named top-level class in this
class loader and any nested classes contained therein.
|
synchronized
void
|
setDefaultAssertionStatus(boolean enabled)
Sets the default assertion status for this class loader.
|
synchronized
void
|
setPackageAssertionStatus(String packageName, boolean enabled)
Sets the package default assertion status for the named package.
|
final
void
|
setSigners(Class<?> c, Object[] signers)
Sets the signers of a class.
|