Code example for FileNotFoundException

0
	 */ 
	@Override 
	public InputStream getInputStream() throws IOException { 
		InputStream is = this.servletContext.getResourceAsStream(this.path); 
		if (is == null) { 
			throw new FileNotFoundException("Could not open " + getDescription()); 
		} 
		return is; 
	} 
 
	/** 
	 * This implementation delegates to {@code ServletContext.getResource}, 
	 * but throws a FileNotFoundException if no resource found. 
	 * @see javax.servlet.ServletContext#getResource(String) 
	 */ 
	@Override 
	public URL getURL() throws IOException { 
		URL url = this.servletContext.getResource(this.path); 
		if (url == null) { 
			throw new FileNotFoundException( 
Connect your IDE to all the code out there  Get Codota for Java