Package org.apache.tika.detect
Class XmlRootExtractor
- java.lang.Object
-
- org.apache.tika.detect.XmlRootExtractor
-
public class XmlRootExtractor extends java.lang.Object
Utility class that uses aSAXParser
to determine the namespace URI and local name of the root element of an XML file.- Since:
- Apache Tika 0.4
-
-
Constructor Summary
Constructors Constructor Description XmlRootExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.namespace.QName
extractRootElement(byte[] data)
javax.xml.namespace.QName
extractRootElement(java.io.InputStream stream)
-