public class XSSFExcelExtractor extends POIXMLTextExtractor implements ExcelExtractor
Modifier and Type | Field and Description |
---|---|
static XSSFRelation[] |
SUPPORTED_TYPES |
document
Constructor and Description |
---|
XSSFExcelExtractor(OPCPackage container) |
XSSFExcelExtractor(String path)
Deprecated.
|
XSSFExcelExtractor(XSSFWorkbook workbook) |
Modifier and Type | Method and Description |
---|---|
String |
getText()
Retreives the text contents of the file
|
static void |
main(String[] args) |
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 true
|
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 |
setLocale(Locale locale)
What Locale should be used for formatting numbers (based
on the styles applied to the cells)
|
getCoreProperties, getCustomProperties, getDocument, getExtendedProperties, getMetadataTextExtractor, getPackage
public static final XSSFRelation[] SUPPORTED_TYPES
public XSSFExcelExtractor(String path) throws org.apache.xmlbeans.XmlException, OpenXML4JException, IOException
XSSFExcelExtractor(org.zkoss.poi.openxml4j.opc.OPCPackage)
instead.org.apache.xmlbeans.XmlException
OpenXML4JException
IOException
public XSSFExcelExtractor(OPCPackage container) throws org.apache.xmlbeans.XmlException, OpenXML4JException, IOException
org.apache.xmlbeans.XmlException
OpenXML4JException
IOException
public XSSFExcelExtractor(XSSFWorkbook workbook)
public void setIncludeSheetNames(boolean includeSheetNames)
setIncludeSheetNames
in interface ExcelExtractor
public void setFormulasNotResults(boolean formulasNotResults)
setFormulasNotResults
in interface ExcelExtractor
public void setIncludeCellComments(boolean includeCellComments)
setIncludeCellComments
in interface ExcelExtractor
public void setIncludeHeadersFooters(boolean includeHeadersFooters)
public void setLocale(Locale locale)
public String getText()
getText
in interface ExcelExtractor
getText
in class POITextExtractor
Copyright © 2020. All rights reserved.