poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1563658 - in /poi/trunk/src/java/org/apache/poi: hssf/extractor/EventBasedExcelExtractor.java ss/extractor/ExcelExtractor.java
Date Sun, 02 Feb 2014 16:41:27 GMT
Author: nick
Date: Sun Feb  2 16:41:27 2014
New Revision: 1563658

URL: http://svn.apache.org/r1563658
Log:
Add setIncludeHeadersFooters(boolean) to the ExcelExtractor common interface, as all implementations
now have the method

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

Modified: poi/trunk/src/java/org/apache/poi/hssf/extractor/EventBasedExcelExtractor.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/extractor/EventBasedExcelExtractor.java?rev=1563658&r1=1563657&r2=1563658&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/extractor/EventBasedExcelExtractor.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/extractor/EventBasedExcelExtractor.java Sun Feb
 2 16:41:27 2014
@@ -45,7 +45,7 @@ import org.apache.poi.poifs.filesystem.P
 
 /**
  * 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 ex
 	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 ex
         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) {

Modified: poi/trunk/src/java/org/apache/poi/ss/extractor/ExcelExtractor.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/ss/extractor/ExcelExtractor.java?rev=1563658&r1=1563657&r2=1563658&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/ss/extractor/ExcelExtractor.java (original)
+++ poi/trunk/src/java/org/apache/poi/ss/extractor/ExcelExtractor.java Sun Feb  2 16:41:27
2014
@@ -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
      */



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message