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

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

public class MSExcelTextExtractor
extends java.lang.Object
implements MimetypeTextExtractor


Field Summary
static int DEFAULT_BUFFER_SIZE
           
 
Constructor Summary
MSExcelTextExtractor()
           
 
Method Summary
 java.lang.String getText(byte[] data)
          Extracts all text from an Excel by parsing all the sheets in that excel document.
static java.lang.String replace(java.lang.String source, java.lang.String pattern, java.lang.String replacement)
          It will replace all occurances of pattern in the source with replacement value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_BUFFER_SIZE

public static final int DEFAULT_BUFFER_SIZE
See Also:
Constant Field Values
Constructor Detail

MSExcelTextExtractor

public MSExcelTextExtractor()
Method Detail

getText

public java.lang.String getText(byte[] data)
                         throws java.lang.Exception
Extracts all text from an Excel by parsing all the sheets in that excel document.

Specified by:
getText in interface MimetypeTextExtractor
Returns:
String
Throws:
java.lang.Exception

replace

public static java.lang.String replace(java.lang.String source,
                                       java.lang.String pattern,
                                       java.lang.String replacement)
It will replace all occurances of pattern in the source with replacement value

Returns:
String


Copyright © 2004-2009 XWiki. All Rights Reserved.