diff options
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xssf/model')
3 files changed, 6 insertions, 36 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java b/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java index f59a8bc308..b0efd0bd46 100644 --- a/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java +++ b/src/ooxml/java/org/apache/poi/xssf/model/CommentsTable.java @@ -35,23 +35,12 @@ import org.openxml4j.opc.PackagePart; import org.openxml4j.opc.PackageRelationship; public class CommentsTable extends POIXMLDocumentPart implements CommentsSource { - private CTComments comments; + protected CTComments comments; - public CommentsTable(InputStream is) throws IOException { - super(null, null); - readFrom(is); - } public CommentsTable() { super(null, null); comments = CTComments.Factory.newInstance(); } - /** - * For unit testing only! - */ - public CommentsTable(CTComments comments) { - super(null, null); - this.comments = comments; - } public CommentsTable(PackagePart part, PackageRelationship rel) throws IOException { super(part, rel); @@ -148,4 +137,8 @@ public class CommentsTable extends POIXMLDocumentPart implements CommentsSource getCommentsAuthors().insertAuthor(index, author); return index; } + + public CTComments getCTComments(){ + return comments; + } }
\ No newline at end of file diff --git a/src/ooxml/java/org/apache/poi/xssf/model/SharedStringsTable.java b/src/ooxml/java/org/apache/poi/xssf/model/SharedStringsTable.java index cbf2811676..94d0174567 100644 --- a/src/ooxml/java/org/apache/poi/xssf/model/SharedStringsTable.java +++ b/src/ooxml/java/org/apache/poi/xssf/model/SharedStringsTable.java @@ -60,7 +60,7 @@ import org.openxml4j.opc.PackageRelationship; * @author Nick Birch * @author Yegor Kozlov */ -public class SharedStringsTable extends POIXMLDocumentPart implements SharedStringSource { +public class SharedStringsTable extends POIXMLDocumentPart { /** * Array of individual string items in the Shared String table. @@ -85,18 +85,6 @@ public class SharedStringsTable extends POIXMLDocumentPart implements SharedStri */ private int uniqueCount; - /** - * Create a new SharedStringsTable, by reading it - * from the InputStream of a PackagePart. - * - * @param is The input stream containing the XML document. - * @throws IOException if an error occurs while reading. - */ - public SharedStringsTable(InputStream is) throws IOException { - super(null, null); - readFrom(is); - } - public SharedStringsTable() { super(null, null); } diff --git a/src/ooxml/java/org/apache/poi/xssf/model/StylesTable.java b/src/ooxml/java/org/apache/poi/xssf/model/StylesTable.java index 1e7fdd888f..2e1473b671 100644 --- a/src/ooxml/java/org/apache/poi/xssf/model/StylesTable.java +++ b/src/ooxml/java/org/apache/poi/xssf/model/StylesTable.java @@ -82,17 +82,6 @@ public class StylesTable extends POIXMLDocumentPart implements StylesSource { private StyleSheetDocument doc; /** - * Create a new StylesTable, by reading it from - * the InputStream of a a PackagePart. - * - * @param is The input stream containing the XML document. - * @throws IOException if an error occurs while reading. - */ - public StylesTable(InputStream is) throws IOException { - super(null, null); - readFrom(is); - } - /** * Create a new, empty StylesTable */ public StylesTable() { |