You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by bo...@apache.org on 2009/02/06 09:49:50 UTC

svn commit: r741473 - /commons/sandbox/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java

Author: bodewig
Date: Fri Feb  6 08:49:49 2009
New Revision: 741473

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

Modified:
    commons/sandbox/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java

Modified: commons/sandbox/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java
URL: http://svn.apache.org/viewvc/commons/sandbox/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java?rev=741473&r1=741472&r2=741473&view=diff
==============================================================================
--- commons/sandbox/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java (original)
+++ commons/sandbox/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java Fri Feb  6 08:49:49 2009
@@ -34,10 +34,10 @@
     }
 
     public ArchiveEntry getNextEntry() throws IOException {
-    	java.util.zip.ZipEntry entry = input.getNextEntry();
-    	if(entry == null) {
-    		return null;
-    	}
+        java.util.zip.ZipEntry entry = input.getNextEntry();
+        if(entry == null) {
+            return null;
+        }
         return (ArchiveEntry)new ZipArchiveEntry(entry);
     }
 
@@ -50,34 +50,34 @@
     }
 
     
-    public static boolean matches( byte[] signature ) {
-    	// 4b50 0403 0014 0000
+    public static boolean matches( byte[] signature, int length ) {
+        // 4b50 0403 0014 0000
 
-    	if (signature[0] != 0x50) {
-    		return false;
-    	}
-    	if (signature[1] != 0x4b) {
-    		return false;
-    	}
-    	if (signature[2] != 0x03) {
-    		return false;
-    	}
-    	if (signature[3] != 0x04) {
-    		return false;
-    	}
-    	if (signature[4] != 0x14) {
-    		return false;
-    	}
-    	if (signature[5] != 0x00) {
-    		return false;
-    	}
-    	if (signature[6] != 0x00) {
-    		return false;
-    	}
-    	if (signature[7] != 0x00) {
-    		return false;
-    	}
-    	
-    	return true;
+        if (signature[0] != 0x50) {
+            return false;
+        }
+        if (signature[1] != 0x4b) {
+            return false;
+        }
+        if (signature[2] != 0x03) {
+            return false;
+        }
+        if (signature[3] != 0x04) {
+            return false;
+        }
+        if (signature[4] != 0x14) {
+            return false;
+        }
+        if (signature[5] != 0x00) {
+            return false;
+        }
+        if (signature[6] != 0x00) {
+            return false;
+        }
+        if (signature[7] != 0x00) {
+            return false;
+        }
+        
+        return true;
     }
 }