Finds the resource with the given name. Class loader implementations should override this method.
For resources in named modules then the method must implement the
rules for encapsulation specified in the Module getResourceAsStream method. Additionally,
it must not find non-" .class" resources in packages of named
modules unless the package is opened
unconditionally.
name
| The resource name |
URL object for reading the resource; null if
the resource could not be found, a URL could not be
constructed to locate the resource, the resource is in a package
that is not opened unconditionally, or access to the resource is
denied by the security manager.
@implSpec The default implementation returns null.
@revised 9
@spec JPMS
Diagram: ClassLoader