/** * Extracts resources using the {@link ClassLoader} of the caller class, * and returns the cached {@link File} objects. * * @param name of the resources passed to {@link #findResources(Class, String)} * @see #cacheResources(Class, String) */ public static File[] cacheResources(String name) throws IOException { Class cls = getCallerClass(2); return cacheResources(cls, name); } /**
for (File f : Loader.cacheResources(s)) { if (f.isDirectory()) { if (p.endsWith(" ")) { for (File f : Loader.cacheResources(s)) { if (f.isDirectory()) { if (p.endsWith(" ")) {
for (File f : Loader.cacheResources(s)) { paths.add(f.getCanonicalPath());
for (File f : Loader.cacheResources(s)) { String path = f.getCanonicalPath(); if (paths.length() > 0 && !paths.endsWith(separator)) { for (File f2 : Loader.cacheResources(s2)) { String path2 = f2.getCanonicalPath(); if (path2.startsWith(path) && !path2.equals(path)) {