Class XmlRootExtractor


  • public class XmlRootExtractor
    extends java.lang.Object
    Utility class that uses a SAXParser to determine the namespace URI and local name of the root element of an XML file.
    Since:
    Apache Tika 0.4
    • 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)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XmlRootExtractor

        public XmlRootExtractor()
    • Method Detail

      • extractRootElement

        public javax.xml.namespace.QName extractRootElement​(byte[] data)
      • extractRootElement

        public javax.xml.namespace.QName extractRootElement​(java.io.InputStream stream)
        Since:
        Apache Tika 0.9