jpaoletti.jpm.util.ResourceManager Maven / Gradle / Ivy
The newest version!
package jpaoletti.jpm.util;
import java.io.FileNotFoundException;
import java.io.InputStream;
/**
* Resource helper
*
* @author jpaoletti
*/
public class ResourceManager {
public static InputStream getInputStream(final String filename) throws FileNotFoundException {
final InputStream is = ResourceManager.class.getClassLoader().getResourceAsStream(filename);
if (is == null) {
throw new FileNotFoundException(filename);
}
return is;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy