The list of methods to do Resource Get are organized into topic(s).
URL
getResource(Class _class, String resource) Find the requested resource (file) like Class.getResource(), but it works for both applets and applications.
URL url = _class.getResource(resource);
if (url == null) {
return url;
String
getResource(Class> c, String name) get Resource
try {
return c.getResource(name).toURI().toString();
} catch (URISyntaxException e) {
throw new RuntimeException(e);
URL
getResource(Class> clazz, String resource) get Resource
if (resource == null || resource.trim().length() == 0) {
throw new IllegalArgumentException("resource is null!");
URL url = null;
if (clazz != null) {
url = clazz.getResource(resource);
if (url == null) {
if (clazz.getClassLoader() != null) {
...
URL
getResource(Class> controllerClass) Find the .fxml resource associated with a given controller class by location and naming conventions.
return getResource(controllerClass, getResourceName(controllerClass));
URL
getResource(final String res) get Resource
final URL edictGz = Thread.currentThread().getContextClassLoader().getResource(res);
if (edictGz == null) {
throw new AssertionError("The " + res + " resource is missing");
return edictGz;