112113114115116117118119120121
throws XMLStreamException { WstxInputFactory f = (WstxInputFactory) getInputFactory(); ReaderConfig cfg = f.getConfig(); cfg.doReportPrologWhitespace(prologWS); cfg.doParseLazily(lazyParsing); return constructStreamReader(f, contents); } }
115116117118119120121122123124
407408409410411412413414415416417
if (forEventReader) { /* No point in lazy parsing for event readers: no more efficient * (and possible less) since all data is needed, always; and * exceptions also get lazily thrown after the fact. */ cfg.doParseLazily(false); } if (forceAutoClose) { cfg.doAutoCloseInput(true); } return cfg;