Return-Path: X-Original-To: apmail-poi-commits-archive@minotaur.apache.org Delivered-To: apmail-poi-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 54B9A10A9D for ; Sun, 2 Feb 2014 16:41:52 +0000 (UTC) Received: (qmail 57868 invoked by uid 500); 2 Feb 2014 16:41:51 -0000 Delivered-To: apmail-poi-commits-archive@poi.apache.org Received: (qmail 57824 invoked by uid 500); 2 Feb 2014 16:41:51 -0000 Mailing-List: contact commits-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@poi.apache.org Delivered-To: mailing list commits@poi.apache.org Received: (qmail 57814 invoked by uid 99); 2 Feb 2014 16:41:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Feb 2014 16:41:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Feb 2014 16:41:48 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id BD9DF23888E2; Sun, 2 Feb 2014 16:41:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@poi.apache.org From: nick@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140202164127.BD9DF23888E2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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