poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1717042 - in /poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming: SXSSFRow.java SheetDataWriter.java
Date Sun, 29 Nov 2015 11:47:27 GMT
Author: onealj
Date: Sun Nov 29 11:47:27 2015
New Revision: 1717042

URL: http://svn.apache.org/viewvc?rev=1717042&view=rev
Log:
make SXSSFRow._style private, add getRowStyleIndex() in its place

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java?rev=1717042&r1=1717041&r2=1717042&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFRow.java Sun Nov 29 11:47:27
2015
@@ -25,6 +25,7 @@ import org.apache.poi.ss.usermodel.Cell;
 import org.apache.poi.ss.usermodel.CellStyle;
 import org.apache.poi.ss.usermodel.Row;
 import org.apache.poi.ss.usermodel.Sheet;
+import org.apache.poi.util.Internal;
 
 /**
  * Streaming version of XSSFRow implementing the "BigGridDemo" strategy.
@@ -36,7 +37,7 @@ public class SXSSFRow implements Row
     SXSSFSheet _sheet;
     SXSSFCell[] _cells;
     int _maxColumn=-1;
-    short _style=-1;
+    private short _style=-1;
     short _height=-1;
     boolean _zHeight = false;
     int _outlineLevel = 0;   // Outlining level of the row, when outlining is on
@@ -404,6 +405,11 @@ public class SXSSFRow implements Row
        return getSheet().getWorkbook().getCellStyleAt(_style);
     }
     
+    @Internal
+    /*package*/ int getRowStyleIndex() {
+        return _style;
+    }
+    
     /**
      * Applies a whole-row cell styling to the row.
      * The row style can be cleared by passing in <code>null</code>.

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java?rev=1717042&r1=1717041&r2=1717042&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/streaming/SheetDataWriter.java Sun Nov 29
11:47:27 2015
@@ -161,7 +161,7 @@ public class SheetDataWriter {
         if (row.getZeroHeight())
             _out.write(" hidden=\"true\"");
         if (row.isFormatted()) {
-            _out.write(" s=\"" + row._style + "\"");
+            _out.write(" s=\"" + row.getRowStyleIndex() + "\"");
             _out.write(" customFormat=\"1\"");
         }
         if (row.getOutlineLevel() != 0) {



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


Mime
View raw message