com.xpn.xwiki.plugin.lucene.textextraction
Class XmlTextExtractor

java.lang.Object
  extended by com.xpn.xwiki.plugin.lucene.textextraction.XmlTextExtractor
All Implemented Interfaces:
MimetypeTextExtractor

public class XmlTextExtractor
extends java.lang.Object
implements MimetypeTextExtractor

Extracts all text between tags in an XML document. Only works (of course) for well formed XML documents.


Constructor Summary
XmlTextExtractor()
           
 
Method Summary
 java.lang.String getText(byte[] data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlTextExtractor

public XmlTextExtractor()
Method Detail

getText

public java.lang.String getText(byte[] data)
                         throws java.lang.Exception
Specified by:
getText in interface MimetypeTextExtractor
Throws:
java.lang.Exception


Copyright © 2004-2009 XWiki. All Rights Reserved.