@Beta public static class ClassPath.ResourceInfo extends Object
Represents a class path resource that can be either a class file or any other resource file loadable from the class path.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getResourceName()
Returns the fully qualified name of the resource.
|
int |
hashCode() |
String |
toString() |
URL |
url()
Returns the url identifying the resource.
|
public final URL url() throws NoSuchElementException
Returns the url identifying the resource.
NoSuchElementException - if the resource cannot be loaded through the class loader, despite physically existing in the class path.public final String getResourceName()
Returns the fully qualified name of the resource. Such as “com/mycomp/foo/bar.txt”.