]> source.dussan.org Git - poi.git/commitdiff
whitespace
authorJaven O'Neal <onealj@apache.org>
Fri, 4 Dec 2015 10:46:58 +0000 (10:46 +0000)
committerJaven O'Neal <onealj@apache.org>
Fri, 4 Dec 2015 10:46:58 +0000 (10:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717927 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/dev/XSSFDump.java

index 3e307f02d77695f55fc7076f04bc616e348c0b76..033fcc1814d886d8bc7cace4b75688ef5aabc497 100644 (file)
@@ -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();
             }
         }
     }