public InputStream getTemporaryResourceAsStream(String resourceName) throws ResourceNotFoundException {
		InputStream is = null;
		if (useFileSystemTempDir) {
			File file = new File(resourceName);
			try {
				is = new FileInputStream(file);
			} catch (FileNotFoundException e) {
				throw new ResourceNotFoundException(resourceName);
			}
		} else {
			is = doGetResourceAsStream(resourceName);
		}

		if (is == null) {
			throw new ResourceNotFoundException(resourceName);
		}

		return is;
	}
public InputStream getTemporaryResourceAsStream ( String resourceName ) throws ResourceNotFoundException { InputStream is = null ; if ( useFileSystemTempDir ) { File file = new File ( resourceName ) ; try { is = new FileInputStream ( file ) ; } catch ( FileNotFoundException e ) { throw new ResourceNotFoundException ( resourceName ) ; } } else { is = doGetResourceAsStream ( resourceName ) ; } if ( is == null ) { throw new ResourceNotFoundException ( resourceName ) ; } return is ; }
/*
(non-Javadoc)

@see
net.jawr.web.resource.ResourceHandler#getTemporaryResourceAsStream(java
.lang.String)