Commit eeb7ce52 authored by Vincent Calame's avatar Vincent Calame

Utilisation de SAX pour IndexationXmlEngine

parent 7710ff5a
......@@ -58,8 +58,8 @@ import net.scrutari.xml.BaseURIXmlEngine;
import net.scrutari.xml.BaseXmlEngine;
import net.scrutari.xml.IndexationXmlEngine;
import net.scrutari.xml.Parameters;
import net.scrutari.xml.XmlChecker;
import net.scrutari.xml.SctXmlUtils;
import net.scrutari.xml.XmlChecker;
import org.xml.sax.SAXException;
import org.xmlpull.v1.XmlPullParserException;
......@@ -370,7 +370,7 @@ public final class SctEngineImpl implements SctEngine {
for (EngineStorage.Data data : dataList) {
try (InputStream is = data.getInputStream()) {
indexationXmlEngine.run(is, baseURI);
} catch (XmlPullParserException | IOException e) {
} catch (SAXException | IOException e) {
scrutariSourceManager.setState(scrutariSource, CollectResult.DATA_NOTXML_STATE);
updateLogHandler.exception(e);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment