consumeBOM(stream, encoding);
// If the document is UTF-8 or US-ASCII use
// the Xerces readers for these encodings.
if (encoding.equals("UTF-8")) {
return new UTF8Reader(stream,
XMLEntityManager.DEFAULT_BUFFER_SIZE,
fErrorReporter.getMessageFormatter(XMLMessageFormatter.XML_DOMAIN),
fErrorReporter.getLocale() );
}
else if (encoding.equals("US-ASCII")) {