Example usage for Java java.net URLClassLoader fields, constructors, methods, implement or subclass
The text is from its open source code.
URLClassLoader(URL[] urls) Constructs a new URLClassLoader for the specified URLs using the default delegation parent ClassLoader . | |
URLClassLoader(URL[] urls, ClassLoader parent) Constructs a new URLClassLoader for the given URLs. | |
URLClassLoader(URL[] urls, AccessControlContext acc) | |
URLClassLoader(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory) Constructs a new URLClassLoader for the specified URLs, parent class loader, and URLStreamHandlerFactory. | |
URLClassLoader(String name, URL[] urls, ClassLoader parent) Constructs a new named URLClassLoader for the specified URLs. |
void | close() Closes this URLClassLoader, so that it can no longer be used to load new classes or resources that are defined by this loader. |
URL | findResource(final String name) Finds the resource with the specified name on the URL search path. |
Enumeration | findResources(final String name) Returns an Enumeration of URLs representing all of the resources on the URL search path having the specified name. |
Class> | getClass() Returns the runtime class of this Object . |
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. |
URL[] | getURLs() Returns the search path of URLs for loading classes and resources. |
Class> | loadClass(String name) Loads the class with the specified binary name. |
Class> | loadClass(String name, boolean resolve) |
URLClassLoader | newInstance(final URL[] urls) Creates a new instance of URLClassLoader for the specified URLs and default parent class loader. |
URLClassLoader | newInstance(final URL[] urls, final ClassLoader parent) Creates a new instance of URLClassLoader for the specified URLs and parent class loader. |
void | setPackageAssertionStatus(String packageName, boolean enabled) Sets the package default assertion status for the named package. |