URLClassLoader (Java SE 25 & JDK 25)
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Constructor Summary
Constructors
Constructs a new named
URLClassLoaderfor the specified URLs.Constructs a new named
URLClassLoaderfor the specified URLs, parent class loader, and URLStreamHandlerFactory.Constructs a new URLClassLoader for the given URLs.
Constructs a new URLClassLoader for the specified URLs, parent class loader, and URLStreamHandlerFactory.
-
Method Summary
protected voidAppends the specified URL to the list of URLs to search for classes and resources.
voidclose()Closes this URLClassLoader, so that it can no longer be used to load new classes or resources that are defined by this loader.
Defines a new package by name in this
URLClassLoader.Finds and loads the class with the specified name from the URL search path.
Finds the resource with the specified name on the URL search path.
Returns an Enumeration of URLs representing all of the resources on the URL search path having the specified name.
Returns an input stream for reading the specified resource.
getURLs()Returns the search path of URLs for loading classes and resources.
Creates a new instance of URLClassLoader for the specified URLs and default parent class loader.
Creates a new instance of URLClassLoader for the specified URLs and parent class loader.
Methods declared in class ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
URLClassLoader
-
URLClassLoader
-
URLClassLoader
-
URLClassLoader
-
URLClassLoader
-
-
Method Details
-
getResourceAsStream
-
close
-
addURL
-
getURLs
-
findClass
-
definePackage
-
findResource
-
findResources
-
getPermissions
-
newInstance
-
newInstance
-