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:
parent
eb2e8ffe0a
commit
e023d34c9a
@ -45,7 +45,7 @@ import org.apache.poi.poifs.filesystem.POIFSFileSystem;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* A text extractor for Excel files, that is based
|
* 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
|
* It will typically use less memory than
|
||||||
* {@link ExcelExtractor}, but may not provide
|
* {@link ExcelExtractor}, but may not provide
|
||||||
* the same richness of formatting.
|
* the same richness of formatting.
|
||||||
@ -109,6 +109,7 @@ public class EventBasedExcelExtractor extends POIOLE2TextExtractor implements or
|
|||||||
throw new IllegalStateException("Metadata extraction not supported in streaming mode, please use ExcelExtractor");
|
throw new IllegalStateException("Metadata extraction not supported in streaming mode, please use ExcelExtractor");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Would control the inclusion of cell comments from the document,
|
* Would control the inclusion of cell comments from the document,
|
||||||
* if we supported it
|
* if we supported it
|
||||||
@ -117,6 +118,14 @@ public class EventBasedExcelExtractor extends POIOLE2TextExtractor implements or
|
|||||||
throw new IllegalStateException("Comment extraction not supported in streaming mode, please use ExcelExtractor");
|
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
|
* Should sheet names be included? Default is true
|
||||||
|
@ -33,6 +33,12 @@ public interface ExcelExtractor {
|
|||||||
public void setFormulasNotResults(boolean formulasNotResults);
|
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
|
* Should cell comments be included? Default is false
|
||||||
*/
|
*/
|
||||||
public void setIncludeCellComments(boolean includeCellComments);
|
public void setIncludeCellComments(boolean includeCellComments);
|
||||||
|
Loading…
Reference in New Issue
Block a user