org.apache.poi.xssf.extractor
public class XSSFExcelExtractor extends POIXMLTextExtractor implements ExcelExtractor
document| Constructor and Description |
|---|
XSSFExcelExtractor(OPCPackage container) |
XSSFExcelExtractor(java.lang.String path) |
XSSFExcelExtractor(XSSFWorkbook workbook) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getText()
Retreives the text contents of the file
|
static void |
main(java.lang.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
|
getCoreProperties, getCustomProperties, getDocument, getExtendedProperties, getMetadataTextExtractorpublic XSSFExcelExtractor(java.lang.String path)
throws XmlException,
OpenXML4JException,
java.io.IOException
XmlExceptionOpenXML4JExceptionjava.io.IOExceptionpublic XSSFExcelExtractor(OPCPackage container) throws XmlException, OpenXML4JException, java.io.IOException
XmlExceptionOpenXML4JExceptionjava.io.IOExceptionpublic XSSFExcelExtractor(XSSFWorkbook workbook)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic 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)
public java.lang.String getText()
getText in interface ExcelExtractorgetText in class POITextExtractorCopyright 2016 The Apache Software Foundation or its licensors, as applicable.