public class XSSFExcelExtractor extends Object implements POIXMLTextExtractor, ExcelExtractor
| Modifier and Type | Field and Description |
|---|---|
static List<XSSFRelation> |
SUPPORTED_TYPES |
| Constructor and Description |
|---|
XSSFExcelExtractor(OPCPackage container) |
XSSFExcelExtractor(XSSFWorkbook workbook) |
| Modifier and Type | Method and Description |
|---|---|
XSSFWorkbook |
getDocument()
Returns opened document
|
XSSFWorkbook |
getFilesystem() |
String |
getText()
Retrieves the text contents of the file
|
boolean |
isCloseFilesystem() |
void |
setCloseFilesystem(boolean doCloseFilesystem) |
void |
setFormulasNotResults(boolean formulasNotResults)
Should we return the formula itself, and not
the result it produces? Default is false
|
void |
setIncludeCellComments(boolean includeCellComments)
Should cell comments be included? Default is false
|
void |
setIncludeHeadersFooters(boolean includeHeadersFooters)
Should headers and footers be included? Default is true
|
void |
setIncludeSheetNames(boolean includeSheetNames)
Should sheet names be included? Default is true
|
void |
setIncludeTextBoxes(boolean includeTextBoxes)
Should text within textboxes be included? Default is true
|
void |
setLocale(Locale locale)
What Locale should be used for formatting numbers (based
on the styles applied to the cells)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckMaxTextSize, close, getCoreProperties, getCustomProperties, getExtendedProperties, getMetadataTextExtractor, getPackagepublic static final List<XSSFRelation> SUPPORTED_TYPES
public XSSFExcelExtractor(OPCPackage container) throws org.apache.xmlbeans.XmlException, OpenXML4JException, IOException
org.apache.xmlbeans.XmlExceptionOpenXML4JExceptionIOExceptionpublic XSSFExcelExtractor(XSSFWorkbook workbook)
public void setIncludeSheetNames(boolean includeSheetNames)
setIncludeSheetNames in interface ExcelExtractorpublic void setFormulasNotResults(boolean formulasNotResults)
setFormulasNotResults in interface ExcelExtractorpublic void setIncludeCellComments(boolean includeCellComments)
setIncludeCellComments in interface ExcelExtractorpublic void setIncludeHeadersFooters(boolean includeHeadersFooters)
setIncludeHeadersFooters in interface ExcelExtractorpublic void setIncludeTextBoxes(boolean includeTextBoxes)
includeTextBoxes - True if textboxes should be included, false if not.public void setLocale(Locale locale)
public String getText()
getText in interface POITextExtractorgetText in interface ExcelExtractorpublic XSSFWorkbook getDocument()
POIXMLTextExtractorgetDocument in interface POITextExtractorgetDocument in interface POIXMLTextExtractorpublic void setCloseFilesystem(boolean doCloseFilesystem)
setCloseFilesystem in interface POITextExtractorpublic boolean isCloseFilesystem()
isCloseFilesystem in interface POITextExtractorpublic XSSFWorkbook getFilesystem()
getFilesystem in interface POITextExtractor