commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r911798 - in /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip: ZipArchiveInputStream.java ZipArchiveOutputStream.java
Date Fri, 19 Feb 2010 12:33:28 GMT
Author: bodewig
Date: Fri Feb 19 12:33:28 2010
New Revision: 911798

URL: http://svn.apache.org/viewvc?rev=911798&view=rev
Log:
if it's not a ZipArchiveEntry then the stream can't read/write it

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

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java?rev=911798&r1=911797&r2=911798&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStream.java
Fri Feb 19 12:33:28 2010
@@ -203,7 +203,7 @@
                 (ze.getMethod() == ZipArchiveEntry.STORED
                  || ze.getMethod() == ZipArchiveEntry.DEFLATED);
         }
-        return super.canRead(ae);
+        return false;
     }
 
     public int read(byte[] buffer, int start, int length) throws IOException {

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java?rev=911798&r1=911797&r2=911798&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveOutputStream.java
Fri Feb 19 12:33:28 2010
@@ -517,7 +517,7 @@
             return !ze.isEncrypted() &&
                 (ze.getMethod() == STORED || ze.getMethod() == DEFLATED);
         }
-        return super.canWrite(ae);
+        return false;
     }
 
     /**



Mime
View raw message