Returns the url identifying the resource. See ClassLoader#getResource @throws NoSuchElementException if the resource cannot be loaded through the class loader, despite physically existing in the class path.
()
| 195 | |
| 196 | |
| 197 | public final URL url() { |
| 198 | URL url = loader.getResource(resourceName); |
| 199 | if (url == null) { |
| 200 | throw new NoSuchElementException(resourceName); |
| 201 | } |
| 202 | return url; |
| 203 | } |
| 204 | |
| 205 | /** |
| 206 | * Returns a {@link ByteSource} view of the resource from which its bytes can be read. |
no test coverage detected