/** * Returns the XMLReader specified in this parsing context. If a reader * is not explicitly specified, then one is created using the specified * or the default SAX parser. * * @see #getSAXParser() * @since Apache Tika 1.13 * @return XMLReader * @throws TikaException */ public XMLReader getXMLReader() throws TikaException { XMLReader reader = get(XMLReader.class); if (reader != null) { return reader; } return XMLReaderUtils.getXMLReader(); }
/** * Returns the XMLReader specified in this parsing context. If a reader * is not explicitly specified, then one is created using the specified * or the default SAX parser. * * @see #getSAXParser() * @since Apache Tika 1.13 * @return XMLReader * @throws TikaException */ public XMLReader getXMLReader() throws TikaException { XMLReader reader = get(XMLReader.class); if (reader != null) { return reader; } return XMLReaderUtils.getXMLReader(); }