Code example for FileNotFoundException

0
	} 
 
	public InputStream getInputStream() throws IOException {
		InputStream inputStream = this.assetManager.open(this.fileName);
		if (inputStream == null) {
			throw new FileNotFoundException(getDescription() + " cannot be opened because it does not exist");
		} 
		return inputStream;
	} 
 
	/** 
	 * This implementation compares the file names of the resources. 
	 */ 
	@Override 
	public boolean equals(Object obj) {
		return (obj == this || (obj instanceof AssetResource && this.fileName.equals(((AssetResource) obj).fileName)));
	} 
 
	/** 
	 * This implementation returns the hash code of the file name. 
	 */