Package org.apache.poi.ss.extractor
Interface ExcelExtractor
-
- All Known Implementing Classes:
EventBasedExcelExtractor,ExcelExtractor
public interface ExcelExtractorCommon interface for Excel text extractors, covering HSSF and XSSF
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetText()Retrieves the text contents of the filevoidsetFormulasNotResults(boolean formulasNotResults)Should we return the formula itself, and not the result it produces? Default is falsevoidsetIncludeCellComments(boolean includeCellComments)Should cell comments be included? Default is falsevoidsetIncludeHeadersFooters(boolean includeHeadersFooters)Should headers and footers be included in the output? Default is truevoidsetIncludeSheetNames(boolean includeSheetNames)Should sheet names be included? Default is true
-
-
-
Method Detail
-
setIncludeSheetNames
void setIncludeSheetNames(boolean includeSheetNames)
Should sheet names be included? Default is true- Parameters:
includeSheetNames-trueif the sheet names should be included
-
setFormulasNotResults
void setFormulasNotResults(boolean formulasNotResults)
Should we return the formula itself, and not the result it produces? Default is false- Parameters:
formulasNotResults-trueif the formula itself is returned
-
setIncludeHeadersFooters
void setIncludeHeadersFooters(boolean includeHeadersFooters)
Should headers and footers be included in the output? Default is true- Parameters:
includeHeadersFooters-trueif headers and footers should be included
-
setIncludeCellComments
void setIncludeCellComments(boolean includeCellComments)
Should cell comments be included? Default is false- Parameters:
includeCellComments-trueif cell comments should be included
-
getText
String getText()
Retrieves the text contents of the file- Returns:
- the text contents of the file
-
-