diff options
author | Nick Burch <nick@apache.org> | 2014-02-02 16:23:26 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2014-02-02 16:23:26 +0000 |
commit | ba910a458489b0a0e97248f7c63f714dcfb38d0f (patch) | |
tree | fe5f59629a16c6f9a89da9f7d6dc5b42970abc10 /src/java/org | |
parent | 715e8071897fe226e98fc4dec8365d54e0b82baa (diff) | |
download | poi-ba910a458489b0a0e97248f7c63f714dcfb38d0f.tar.gz poi-ba910a458489b0a0e97248f7c63f714dcfb38d0f.zip |
Have the Excel text extractors all implement the same interface, as best as they can
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1563650 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r-- | src/java/org/apache/poi/hssf/extractor/EventBasedExcelExtractor.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/java/org/apache/poi/hssf/extractor/EventBasedExcelExtractor.java b/src/java/org/apache/poi/hssf/extractor/EventBasedExcelExtractor.java index aef71dc548..541c048ae0 100644 --- a/src/java/org/apache/poi/hssf/extractor/EventBasedExcelExtractor.java +++ b/src/java/org/apache/poi/hssf/extractor/EventBasedExcelExtractor.java @@ -59,10 +59,10 @@ import org.apache.poi.poifs.filesystem.POIFSFileSystem; * <link href="http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/hssf/eventusermodel/examples/XLS2CSVmra.java"> * http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/hssf/eventusermodel/examples/XLS2CSVmra.java</link> */ -public class EventBasedExcelExtractor extends POIOLE2TextExtractor { - private DirectoryNode _dir; - boolean _includeSheetNames = true; - boolean _formulasNotResults = false; +public class EventBasedExcelExtractor extends POIOLE2TextExtractor implements org.apache.poi.ss.extractor.ExcelExtractor { + private DirectoryNode _dir; + boolean _includeSheetNames = true; + boolean _formulasNotResults = false; /** * @deprecated Use {@link #EventBasedExcelExtractor(DirectoryNode)} instead @@ -109,7 +109,15 @@ public class EventBasedExcelExtractor extends POIOLE2TextExtractor { throw new IllegalStateException("Metadata extraction not supported in streaming mode, please use ExcelExtractor"); } + /** + * Would control the inclusion of cell comments from the document, + * if we supported it + */ + public void setIncludeCellComments(boolean includeComments) { + throw new IllegalStateException("Comment extraction not supported in streaming mode, please use ExcelExtractor"); + } + /** * Should sheet names be included? Default is true */ |