java.lang
Class VMClassLoader
java.lang.Object
java.lang.VMClassLoader
class VMClassLoader
- extends Object
|
Method Summary |
(package private) static Class |
defineClass(ClassLoader cl,
byte[] data,
int offset,
int len,
ProtectionDomain pd)
|
(package private) static Class |
defineClass(ClassLoader cl,
String name,
byte[] data,
int offset,
int len,
ProtectionDomain pd)
|
(package private) static Class |
findLoadedClass(ClassLoader cl,
String name)
|
(package private) static Class |
getPrimitiveClass(char type)
|
(package private) static URL |
getResource(String name)
Get a resource from a file in the bootstrap class path. |
(package private) static Enumeration<URL> |
getResources(String name)
|
(package private) static Class |
loadClass(String name,
boolean resolve)
Load class with bootstrap class loader. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VMClassLoader
VMClassLoader()
getResource
static URL getResource(String name)
- Get a resource from a file in the bootstrap class path.
It would be simpler to just walk through the class path elements
ourselves, but that would require reopening Jar files.
We assume that the bootclasspath can't change once the VM has
started. This assumption seems to be supported by the spec.
getResources
static Enumeration<URL> getResources(String name)
loadClass
static Class loadClass(String name,
boolean resolve)
throws ClassNotFoundException
- Load class with bootstrap class loader.
- Throws:
ClassNotFoundException
getPrimitiveClass
static Class getPrimitiveClass(char type)
defineClass
static Class defineClass(ClassLoader cl,
String name,
byte[] data,
int offset,
int len,
ProtectionDomain pd)
throws ClassFormatError
- Throws:
ClassFormatError
defineClass
static Class defineClass(ClassLoader cl,
byte[] data,
int offset,
int len,
ProtectionDomain pd)
throws ClassFormatError
- Throws:
ClassFormatError
findLoadedClass
static Class findLoadedClass(ClassLoader cl,
String name)
Please submit a feedback, bug or feature