]> source.dussan.org Git - poi.git/commitdiff
Add setIncludeHeadersFooters(boolean) to the ExcelExtractor common interface, as...
authorNick Burch <nick@apache.org>
Sun, 2 Feb 2014 16:41:27 +0000 (16:41 +0000)
committerNick Burch <nick@apache.org>
Sun, 2 Feb 2014 16:41:27 +0000 (16:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1563658 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/extractor/EventBasedExcelExtractor.java
src/java/org/apache/poi/ss/extractor/ExcelExtractor.java

index 541c048ae0aee69f36bdaeb8e4bc54333ddf65c3..0eec3d629c83da7160b78a066398045042d17974 100644 (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) {
index 8817bc7e296d91ebf3f1fdc8586ec54f9bfd462d..7fd48499514d58c72782f8b5f48d4668558003ab 100644 (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
      */