Search in sources :

Example 1 with SystemId

use of com.ctc.wstx.io.SystemId in project flink by apache.

the class Configuration method parse.

private XMLStreamReader parse(InputStream is, String systemIdStr, boolean restricted) throws IOException, XMLStreamException {
    if (!quietmode) {
        LOG.debug("parsing input stream " + is);
    }
    if (is == null) {
        return null;
    }
    SystemId systemId = SystemId.construct(systemIdStr);
    ReaderConfig readerConfig = XML_INPUT_FACTORY.createPrivateConfig();
    if (restricted) {
        readerConfig.setProperty(XMLInputFactory.SUPPORT_DTD, false);
    }
    return XML_INPUT_FACTORY.createSR(readerConfig, systemId, StreamBootstrapper.getInstance(null, systemId, is), false, true);
}
Also used : ReaderConfig(com.ctc.wstx.api.ReaderConfig) SystemId(com.ctc.wstx.io.SystemId)

Aggregations

ReaderConfig (com.ctc.wstx.api.ReaderConfig)1 SystemId (com.ctc.wstx.io.SystemId)1