|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.POITextExtractor
org.apache.poi.POIXMLTextExtractor
org.apache.poi.xssf.extractor.XSSFExcelExtractor
public class XSSFExcelExtractor
Helper class to extract text from an OOXML Excel file
| Field Summary | |
|---|---|
static XSSFRelation[] |
SUPPORTED_TYPES
|
| Constructor Summary | |
|---|---|
XSSFExcelExtractor(OPCPackage container)
|
|
XSSFExcelExtractor(java.lang.String path)
|
|
XSSFExcelExtractor(XSSFWorkbook workbook)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.apache.poi.POIXMLTextExtractor |
|---|
getCoreProperties, getCustomProperties, getDocument, getExtendedProperties, getMetadataTextExtractor |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final XSSFRelation[] SUPPORTED_TYPES
| Constructor Detail |
|---|
public XSSFExcelExtractor(java.lang.String path)
throws org.apache.xmlbeans.XmlException,
OpenXML4JException,
java.io.IOException
org.apache.xmlbeans.XmlException
OpenXML4JException
java.io.IOException
public XSSFExcelExtractor(OPCPackage container)
throws org.apache.xmlbeans.XmlException,
OpenXML4JException,
java.io.IOException
org.apache.xmlbeans.XmlException
OpenXML4JException
java.io.IOExceptionpublic XSSFExcelExtractor(XSSFWorkbook workbook)
| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exceptionpublic void setIncludeSheetNames(boolean includeSheetNames)
setIncludeSheetNames in interface org.apache.poi.ss.extractor.ExcelExtractorpublic void setFormulasNotResults(boolean formulasNotResults)
setFormulasNotResults in interface org.apache.poi.ss.extractor.ExcelExtractorpublic void setIncludeCellComments(boolean includeCellComments)
setIncludeCellComments in interface org.apache.poi.ss.extractor.ExcelExtractorpublic void setIncludeHeadersFooters(boolean includeHeadersFooters)
public java.lang.String getText()
getText in interface org.apache.poi.ss.extractor.ExcelExtractorgetText in class org.apache.poi.POITextExtractor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||