Example usage for Java java.lang ClassLoader fields, constructors, methods, implement or subclass
The text is from its open source code.
| ClassLoader() Creates a new class loader using the ClassLoader returned by the method #getSystemClassLoader() getSystemClassLoader() as the parent class loader. | |
| ClassLoader(ClassLoader parent) Creates a new class loader using the specified parent class loader for delegation. |
| 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. |
| boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
| Class> | getClass() Returns the runtime class of this Object . |
| ClassLoader | getClassLoader(Class> caller) |
| 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 | getResources(String name) Finds all the resources with the given name. |
| ClassLoader | getSystemClassLoader() Returns the system class loader. |
| URL | getSystemResource(String name) Find a resource of the specified name from the search path used to load classes. |
| InputStream | getSystemResourceAsStream(String name) Open for reading, a resource of the specified name from the search path used to load classes. |
| Enumeration | getSystemResources(String name) Finds all resources of the specified name from the search path used to load classes. |
| int | hashCode() Returns a hash code value for the object. |
| Class> | loadClass(String name) Loads the class with the specified binary name. |
| 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. |
| void | setDefaultAssertionStatus(boolean enabled) Sets the default assertion status for this class loader. |
| void | setPackageAssertionStatus(String packageName, boolean enabled) Sets the package default assertion status for the named package. |
| String | toString() Returns a string representation of the object. |