Bug 164436 [Regression]Chart can't be converted to a template report item[02]
Description: Chart can't be converted to a template report item Build number: 2.2.0.v20061114-1013 Steps to reproduce: 1.New a chart 2.Right click the chart Expected result: "Create Template Report Item" is enabled Actual result: "Create Template Report Item" is grayed out Error log: N/A
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/util/ModelUtil.java
}
			}
		}
		return null;
	}
	/**
	 * Checks whether the input stream has a compatible encoding signature with
	 * BIRT. Currently, BIRT only supports UTF-8 encoding.
	 * 
	 * @param inputStream
	 *            the input stream to check
	 * @param fileName
	 *            the design file name
	 * @return the signature from the UTF files.
	 * @throws IOException
	 *             if errors occur during opening the design file
	 * @throws SAXException
	 *             if the stream has unexpected encoding signature
	 */
	public static String checkUTFSignature( InputStream inputStream,
			String fileName ) throws IOException, SAXException
	{
		
		
		String encoding = UnicodeUtil.checkUTFSignature( inputStream );
		if ( encoding != null && !UnicodeUtil.SIGNATURE_UTF_8.equals( encoding ) )
		{
			Exception cause = new DesignParserException(
					DesignParserException.DESIGN_EXCEPTION_UNSUPPORTED_ENCODING );
			Exception fileException = new DesignFileException( fileName, cause );