]> source.dussan.org Git - poi.git/commitdiff
convert tabs to spaces
authorPJ Fanning <fanningpj@apache.org>
Sat, 6 Mar 2021 01:51:17 +0000 (01:51 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 6 Mar 2021 01:51:17 +0000 (01:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887239 13f79535-47bb-0310-9956-ffa450edef68

src/examples/src/org/apache/poi/examples/xssf/streaming/DeferredGeneration.java
src/examples/src/org/apache/poi/examples/xssf/streaming/Outlining.java

index 1d07d32d65e8818b9fc03799fb8976243f003478..e3907a98078bd8f687b272a24bf02aab034b1f48 100644 (file)
@@ -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");
-
-                       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();
-                       }
-               }
-       }
+    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);
+                }
+            });
+
+            try (FileOutputStream fileOut = new FileOutputStream("DeferredGeneration.xlsx")) {
+                wb.write(fileOut);
+            } finally {
+                wb.dispose();
+            }
+        }
+    }
 }
index bd558e974341de1d2cf27abc2cd9cc7aa0453f9d..6c29813edd4788b9ac13e30a782f4646c175414b 100644 (file)
@@ -25,30 +25,30 @@ import org.apache.poi.xssf.streaming.SXSSFWorkbook;
 
 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();
+            }
+        }
+    }
 }