Add setIncludeHeadersFooters(boolean) to the ExcelExtractor common interface, as all implementations now have the method

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1563658 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2014-02-02 16:41:27 +00:00
parent eb2e8ffe0a
commit e023d34c9a
2 changed files with 18 additions and 3 deletions

View File

@ -45,7 +45,7 @@ import org.apache.poi.poifs.filesystem.POIFSFileSystem;
/**
* A text extractor for Excel files, that is based
* on the hssf eventusermodel api.
* on the HSSF EventUserModel API.
* It will typically use less memory than
* {@link ExcelExtractor}, but may not provide
* the same richness of formatting.
@ -108,6 +108,7 @@ public class EventBasedExcelExtractor extends POIOLE2TextExtractor implements or
public SummaryInformation getSummaryInformation() {
throw new IllegalStateException("Metadata extraction not supported in streaming mode, please use ExcelExtractor");
}
/**
* Would control the inclusion of cell comments from the document,
@ -117,8 +118,16 @@ public class EventBasedExcelExtractor extends POIOLE2TextExtractor implements or
throw new IllegalStateException("Comment extraction not supported in streaming mode, please use ExcelExtractor");
}
/**
/**
* Would control the inclusion of headers and footers from the document,
* if we supported it
*/
public void setIncludeHeadersFooters(boolean includeHeadersFooters) {
throw new IllegalStateException("Header/Footer extraction not supported in streaming mode, please use ExcelExtractor");
}
/**
* Should sheet names be included? Default is true
*/
public void setIncludeSheetNames(boolean includeSheetNames) {

View File

@ -32,6 +32,12 @@ public interface ExcelExtractor {
*/
public void setFormulasNotResults(boolean formulasNotResults);
/**
* Should headers and footers be included in the output?
* Default is true
*/
public void setIncludeHeadersFooters(boolean includeHeadersFooters);
/**
* Should cell comments be included? Default is false
*/