code: public static InputStream getResourceAsStream(Class<?> clazz, String fn) throws IOException {
  		InputStream stream = clazz.getResourceAsStream(fn);
  		if (stream == null) {
  			throw new IOException("resource \"" + fn + "\" relative to " + clazz + " not found.");
  		}
  		return unpackStream(stream, fn);
  	}
docs: Get an input stream to read the raw contents of the given resource, remember to close it :)