src/org/tiefaces/common/FacesUtility.java
public static InputStream getResourceAsStream(
			final FacesContext context, final String path) {
		return context.getExternalContext().getResourceAsStream(path);
	}
public static InputStream getResourceAsStream(
			final FacesContext context, final String path) {
		return context.getExternalContext().getResourceAsStream(path);
	}
public static InputStream getResourceAsStream ( final FacesContext context , final String path ) { return context . getExternalContext ( ) . getResourceAsStream ( path ) ; }
get resource file as stream.

@param context
faces context.
@param path
resource file path.
@return stream.
get resource file as stream .