Java java.net URLClassLoader fields, constructors, methods, implement or subclass

Example usage for Java java.net URLClassLoader fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.net URLClassLoader.

The text is from its open source code.

Subclass

java.net.URLClassLoader has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

voidclose()
Closes this URLClassLoader, so that it can no longer be used to load new classes or resources that are defined by this loader.
URLfindResource(final String name)
Finds the resource with the specified name on the URL search path.
EnumerationfindResources(final String name)
Returns an Enumeration of URLs representing all of the resources on the URL search path having the specified name.
ClassgetClass()
Returns the runtime class of this Object .
ClassLoadergetParent()
Returns the parent class loader for delegation.
URLgetResource(String name)
Finds the resource with the given name.
InputStreamgetResourceAsStream(String name)
Returns an input stream for reading the specified resource.
EnumerationgetResources(String name)
Finds all the resources with the given name.
URL[]getURLs()
Returns the search path of URLs for loading classes and resources.
ClassloadClass(String name)
Loads the class with the specified binary name.
ClassloadClass(String name, boolean resolve)
URLClassLoadernewInstance(final URL[] urls)
Creates a new instance of URLClassLoader for the specified URLs and default parent class loader.
URLClassLoadernewInstance(final URL[] urls, final ClassLoader parent)
Creates a new instance of URLClassLoader for the specified URLs and parent class loader.
voidsetPackageAssertionStatus(String packageName, boolean enabled)
Sets the package default assertion status for the named package.