poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1717927 - /poi/trunk/src/ooxml/java/org/apache/poi/xssf/dev/XSSFDump.java
Date Fri, 04 Dec 2015 10:46:59 GMT
Author: onealj
Date: Fri Dec  4 10:46:58 2015
New Revision: 1717927

URL: http://svn.apache.org/viewvc?rev=1717927&view=rev
Log:
whitespace

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xssf/dev/XSSFDump.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/dev/XSSFDump.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/dev/XSSFDump.java?rev=1717927&r1=1717926&r2=1717927&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/dev/XSSFDump.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/dev/XSSFDump.java Fri Dec  4 10:46:58 2015
@@ -45,9 +45,9 @@ public final class XSSFDump {
             System.out.println("Dumping " + args[i]);
             ZipFile zip = ZipHelper.openZipFile(args[i]);
             try {
-            	dump(zip);
+                dump(zip);
             } finally {
-            	zip.close();
+                zip.close();
             }
         }
     }
@@ -79,11 +79,11 @@ public final class XSSFDump {
         System.out.println("Dumping to directory " + root);
 
         Enumeration<? extends ZipEntry> en = zip.entries();
-        while(en.hasMoreElements()){
+        while (en.hasMoreElements()) {
             ZipEntry entry = en.nextElement();
             String name = entry.getName();
             int idx = name.lastIndexOf('/');
-            if(idx != -1){
+            if (idx != -1) {
                 File bs = new File(root, name.substring(0, idx));
                 recursivelyCreateDirIfMissing(bs);
             }
@@ -91,7 +91,7 @@ public final class XSSFDump {
             File f = new File(root, entry.getName());
             OutputStream out = new FileOutputStream(f);
             try {
-                if(entry.getName().endsWith(".xml") || entry.getName().endsWith(".vml") ||
entry.getName().endsWith(".rels")){
+                if (entry.getName().endsWith(".xml") || entry.getName().endsWith(".vml")
|| entry.getName().endsWith(".rels")) {
                     try {
                         XmlObject xml = XmlObject.Factory.parse(zip.getInputStream(entry),
DEFAULT_XML_OPTIONS);
                         XmlOptions options = new XmlOptions();
@@ -105,7 +105,7 @@ public final class XSSFDump {
                     IOUtils.copy(zip.getInputStream(entry), out);
                 }
             } finally {
-            	out.close();
+                out.close();
             }
         }
     }



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


Mime
View raw message