You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by fa...@apache.org on 2021/03/06 01:51:18 UTC
svn commit: r1887239 - in
/poi/trunk/src/examples/src/org/apache/poi/examples/xssf/streaming:
DeferredGeneration.java Outlining.java
Author: fanningpj
Date: Sat Mar 6 01:51:17 2021
New Revision: 1887239
URL: http://svn.apache.org/viewvc?rev=1887239&view=rev
Log:
convert tabs to spaces
Modified:
poi/trunk/src/examples/src/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java
poi/trunk/src/examples/src/org/apache/poi/examples/xssf/streaming/Outlining.java
Modified: poi/trunk/src/examples/src/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java?rev=1887239&r1=1887238&r2=1887239&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java Sat Mar 6 01:51:17 2021
@@ -27,23 +27,23 @@ import java.io.IOException;
public class DeferredGeneration {
- public static void main(String[] args) throws IOException {
- try (DeferredSXSSFWorkbook wb = new DeferredSXSSFWorkbook()) {
- DeferredSXSSFSheet sheet1 = wb.createSheet("new sheet");
+ public static void main(String[] args) throws IOException {
+ try (DeferredSXSSFWorkbook wb = new DeferredSXSSFWorkbook()) {
+ DeferredSXSSFSheet sheet1 = wb.createSheet("new sheet");
- sheet1.setRowGenerator((ssxSheet) -> {
- for (int i = 0; i < 10; i++) {
- Row row = ssxSheet.createRow(i);
- Cell cell = row.createCell(1);
- cell.setCellValue("value " + i);
- }
- });
+ sheet1.setRowGenerator((ssxSheet) -> {
+ for (int i = 0; i < 10; i++) {
+ Row row = ssxSheet.createRow(i);
+ Cell cell = row.createCell(1);
+ cell.setCellValue("value " + i);
+ }
+ });
- try (FileOutputStream fileOut = new FileOutputStream("DeferredGeneration.xlsx")) {
- wb.write(fileOut);
- } finally {
- wb.dispose();
- }
- }
- }
+ try (FileOutputStream fileOut = new FileOutputStream("DeferredGeneration.xlsx")) {
+ wb.write(fileOut);
+ } finally {
+ wb.dispose();
+ }
+ }
+ }
}
Modified: poi/trunk/src/examples/src/org/apache/poi/examples/xssf/streaming/Outlining.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/examples/xssf/streaming/Outlining.java?rev=1887239&r1=1887238&r2=1887239&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/examples/xssf/streaming/Outlining.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/examples/xssf/streaming/Outlining.java Sat Mar 6 01:51:17 2021
@@ -25,30 +25,30 @@ import org.apache.poi.xssf.streaming.SXS
public class Outlining {
- public static void main(String[] args) throws IOException {
- Outlining o = new Outlining();
- o.collapseRow();
- }
-
- private void collapseRow() throws IOException {
- try (SXSSFWorkbook wb2 = new SXSSFWorkbook(100)) {
- SXSSFSheet sheet2 = wb2.createSheet("new sheet");
-
- int rowCount = 20;
- for (int i = 0; i < rowCount; i++) {
- sheet2.createRow(i);
- }
-
- sheet2.groupRow(4, 9);
- sheet2.groupRow(11, 19);
-
- sheet2.setRowGroupCollapsed(4, true);
-
- try (FileOutputStream fileOut = new FileOutputStream("outlining_collapsed.xlsx")) {
- wb2.write(fileOut);
- } finally {
- wb2.dispose();
- }
- }
- }
+ public static void main(String[] args) throws IOException {
+ Outlining o = new Outlining();
+ o.collapseRow();
+ }
+
+ private void collapseRow() throws IOException {
+ try (SXSSFWorkbook wb2 = new SXSSFWorkbook(100)) {
+ SXSSFSheet sheet2 = wb2.createSheet("new sheet");
+
+ int rowCount = 20;
+ for (int i = 0; i < rowCount; i++) {
+ sheet2.createRow(i);
+ }
+
+ sheet2.groupRow(4, 9);
+ sheet2.groupRow(11, 19);
+
+ sheet2.setRowGroupCollapsed(4, true);
+
+ try (FileOutputStream fileOut = new FileOutputStream("outlining_collapsed.xlsx")) {
+ wb2.write(fileOut);
+ } finally {
+ wb2.dispose();
+ }
+ }
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org