public InputStream getDataResourceStream(String path) { InputStream stream = getClassLoader().getResourceAsStream(path); if (stream == null) { Object[] filler = { path }; throw new RuntimeException(_MESSAGES.get("NoDataResource", filler)); } return stream; }
public URL getDataResource(String path) { URL url = getClassLoader().getResource(path); if (url == null) { Object[] filler = { path }; throw new RuntimeException(_MESSAGES.get("NoDataResource", filler)); } return url; }