/** * Locates the resource with the specified name. For Java 2 callers, the * current thread's context class loader is preferred, falling back on the * system class loader of the caller when the current thread's context is not * set, or the caller is pre Java 2. * * @param name the name of the resource * @return the resulting <code>URL</code> object */ public static URL getResource( String name) { return getResource(name, null); }
/** * Locates the resource with the specified name. For Java 2 callers, the * current thread's context class loader is preferred, falling back on the * system class loader of the caller when the current thread's context is not * set, or the caller is pre Java 2. * * @param name the name of the resource * @return the resulting <code>URL</code> object */ public static URL getResource( String name) { return getResource(name, null); }