/** * Locates the stream 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>InputStream</code> object */ public static InputStream getResourceAsStream( String name) { return getResourceAsStream(name, null); }
/** * Locates the stream 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>InputStream</code> object */ public static InputStream getResourceAsStream( String name) { return getResourceAsStream(name, null); }