Code example for FileNotFoundException

0
	 */ 
	@Override 
	public InputStream getInputStream() throws IOException {
		InputStream is = this.portletContext.getResourceAsStream(this.path);
		if (is == null) {
			throw new FileNotFoundException("Could not open " + getDescription());
		} 
		return is;
	} 
 
	/** 
	 * This implementation delegates to {@code PortletContext.getResource}, 
	 * but throws a FileNotFoundException if no resource found. 
	 * @see javax.portlet.PortletContext#getResource(String) 
	 */ 
	@Override 
	public URL getURL() throws IOException {
		URL url = this.portletContext.getResource(this.path);
		if (url == null) {
			throw new FileNotFoundException(