*
* @exception java.lang.Exception Throws exception on error.
*/
private XMLEntityHandler.EntityReader callRecognizers(InputSource source, ChunkyByteArray data, boolean xmlDecl) throws Exception {
for (int i = fRecognizers.size() - 1; i >= 0; i--) {
XMLDeclRecognizer recognizer = (XMLDeclRecognizer)fRecognizers.elementAt(i);
XMLEntityHandler.EntityReader reader = recognizer.recognize(fReaderFactory, this, fErrorReporter, fSendCharDataAsCharArray, fStringPool, data, xmlDecl, fAllowJavaEncodingName);
if (reader != null) {
return reader;
}
}
return null;