public class XSSFEventBasedExcelExtractor extends POIXMLTextExtractor
| Modifier and Type | Class and Description |
|---|---|
protected class |
XSSFEventBasedExcelExtractor.SheetTextExtractor |
document| Constructor and Description |
|---|
XSSFEventBasedExcelExtractor(OPCPackage container) |
XSSFEventBasedExcelExtractor(String path) |
| Modifier and Type | Method and Description |
|---|---|
POIXMLProperties.CoreProperties |
getCoreProperties()
Returns the core document properties
|
POIXMLProperties.CustomProperties |
getCustomProperties()
Returns the custom document properties
|
POIXMLProperties.ExtendedProperties |
getExtendedProperties()
Returns the extended document properties
|
OPCPackage |
getPackage()
Returns the opened OPCPackage container.
|
String |
getText()
Processes the file and returns the text
|
static void |
main(String[] args) |
void |
processSheet(XSSFSheetXMLHandler.SheetContentsHandler sheetContentsExtractor,
StylesTable styles,
ReadOnlySharedStringsTable strings,
InputStream sheetInputStream)
Processes the given sheet
|
void |
setFormulasNotResults(boolean formulasNotResults)
Should we return the formula itself, and not
the result it produces? Default is false
|
void |
setIncludeSheetNames(boolean includeSheetNames)
Should sheet names be included? Default is true
|
void |
setLocale(Locale locale) |
getDocument, getMetadataTextExtractorpublic XSSFEventBasedExcelExtractor(String path) throws org.apache.xmlbeans.XmlException, OpenXML4JException, IOException
org.apache.xmlbeans.XmlExceptionOpenXML4JExceptionIOExceptionpublic XSSFEventBasedExcelExtractor(OPCPackage container) throws org.apache.xmlbeans.XmlException, OpenXML4JException, IOException
org.apache.xmlbeans.XmlExceptionOpenXML4JExceptionIOExceptionpublic void setIncludeSheetNames(boolean includeSheetNames)
public void setFormulasNotResults(boolean formulasNotResults)
public void setLocale(Locale locale)
public OPCPackage getPackage()
getPackage in class POIXMLTextExtractorpublic POIXMLProperties.CoreProperties getCoreProperties()
getCoreProperties in class POIXMLTextExtractorpublic POIXMLProperties.ExtendedProperties getExtendedProperties()
getExtendedProperties in class POIXMLTextExtractorpublic POIXMLProperties.CustomProperties getCustomProperties()
getCustomProperties in class POIXMLTextExtractorpublic void processSheet(XSSFSheetXMLHandler.SheetContentsHandler sheetContentsExtractor, StylesTable styles, ReadOnlySharedStringsTable strings, InputStream sheetInputStream) throws IOException, SAXException
IOExceptionSAXExceptionpublic String getText()
getText in class POITextExtractorCopyright © 2020. All rights reserved.