From be1d2aebf23fd1fb274a12a73ff5e351114d6613 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sun, 28 Jun 2020 14:44:47 +0000 Subject: [PATCH] add extra constructor git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1879311 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/xssf/streaming/EmittingSXSSFWorkbook.java | 6 +++++- .../java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/EmittingSXSSFWorkbook.java b/src/ooxml/java/org/apache/poi/xssf/streaming/EmittingSXSSFWorkbook.java index fb2d28a6cc..fe4a2b47c4 100644 --- a/src/ooxml/java/org/apache/poi/xssf/streaming/EmittingSXSSFWorkbook.java +++ b/src/ooxml/java/org/apache/poi/xssf/streaming/EmittingSXSSFWorkbook.java @@ -24,6 +24,7 @@ import java.util.NoSuchElementException; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.util.Beta; +import org.apache.poi.util.NotImplemented; import org.apache.poi.util.POILogFactory; import org.apache.poi.util.POILogger; import org.apache.poi.xssf.usermodel.XSSFSheet; @@ -44,6 +45,8 @@ public class EmittingSXSSFWorkbook extends SXSSFWorkbook { public EmittingSXSSFWorkbook() { this(null); } + + public EmittingSXSSFWorkbook(int rowAccessWindowSize) { this(null, rowAccessWindowSize); } public EmittingSXSSFWorkbook(XSSFWorkbook workbook) { this(workbook, SXSSFWorkbook.DEFAULT_WINDOW_SIZE); @@ -52,7 +55,8 @@ public class EmittingSXSSFWorkbook extends SXSSFWorkbook { public EmittingSXSSFWorkbook(XSSFWorkbook workbook, int rowAccessWindowSize) { super(workbook, rowAccessWindowSize, false, false); } - + + @NotImplemented @Override protected SheetDataWriter createSheetDataWriter() throws IOException { throw new RuntimeException("Not supported by EmittingSXSSFWorkbook"); diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java index 176986d479..4c714a4adb 100644 --- a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java +++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFWorkbook.java @@ -103,7 +103,7 @@ public class SXSSFWorkbook implements Workbook { private int _randomAccessWindowSize = DEFAULT_WINDOW_SIZE; - protected static interface ISheetInjector { + protected interface ISheetInjector { void writeSheetData(OutputStream out) throws IOException; }