use of net.sf.saxon.event.ContentHandlerProxy in project teiid by teiid.
the class ContentHandlerProxyReceiver method parse.
@Override
public void parse(InputSource input) throws IOException, SAXException {
final ContentHandlerProxy chp = new ContentHandlerProxy();
chp.setLexicalHandler(lexicalHandler);
chp.setUnderlyingContentHandler(handler);
this.source.addFilter(new FilterFactory() {
@Override
public ProxyReceiver makeFilter(Receiver arg0) {
return new ContentHandlerProxyReceiver(chp, arg0);
}
});
try {
config.buildDocumentTree(source);
} catch (XPathException e) {
throw new SAXException(e);
}
}
Aggregations