Bug 361443 Excel ODA
data/org.eclipse.birt.report.data.oda.excel/src/org/eclipse/birt/report/data/oda/excel/impl/util/ResourceLocatorUtil.java
throw e ;
		}
		finally
		{
			if ( stream != null )
			{
				try
				{
					stream.close( );
				}
				catch ( IOException ignore )
				{
				}
			}
		}
	}
	public static InputStream getURIStream( Object obj ) throws IOException
	{
		if ( obj instanceof File )
		{
			return new FileInputStream( (File) obj );
		}
		else if ( obj instanceof URI )
		{
			return ( (URI) obj ).toURL( ).openStream( );
		}
		return null;
	}
}