org.apache.tika.detect
Class XmlRootExtractor

java.lang.Object
  extended by org.apache.tika.detect.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

Constructor Summary
XmlRootExtractor()
           
 
Method Summary
 javax.xml.namespace.QName extractRootElement(byte[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlRootExtractor

public XmlRootExtractor()
Method Detail

extractRootElement

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


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.