commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1645115 - /commons/proper/compress/branches/COMPRESS-294/src/main/java/org/apache/commons/compress/compressors/z/ZCompressorInputStream.java
Date Sat, 13 Dec 2014 05:22:14 GMT
Author: bodewig
Date: Sat Dec 13 05:22:14 2014
New Revision: 1645115

URL: http://svn.apache.org/r1645115
Log:
add some debug output

Modified:
    commons/proper/compress/branches/COMPRESS-294/src/main/java/org/apache/commons/compress/compressors/z/ZCompressorInputStream.java

Modified: commons/proper/compress/branches/COMPRESS-294/src/main/java/org/apache/commons/compress/compressors/z/ZCompressorInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/branches/COMPRESS-294/src/main/java/org/apache/commons/compress/compressors/z/ZCompressorInputStream.java?rev=1645115&r1=1645114&r2=1645115&view=diff
==============================================================================
--- commons/proper/compress/branches/COMPRESS-294/src/main/java/org/apache/commons/compress/compressors/z/ZCompressorInputStream.java
(original)
+++ commons/proper/compress/branches/COMPRESS-294/src/main/java/org/apache/commons/compress/compressors/z/ZCompressorInputStream.java
Sat Dec 13 05:22:14 2014
@@ -48,6 +48,7 @@ public class ZCompressorInputStream exte
         }
         blockMode = (thirdByte & BLOCK_MODE_MASK) != 0;
         maxCodeSize = thirdByte & MAX_CODE_SIZE_MASK;
+        System.err.println("starting with maxCodeSize " + maxCodeSize + ", in block mode?
" + blockMode); 
         if (blockMode) {
             setClearCode(codeSize);
         }
@@ -105,6 +106,7 @@ public class ZCompressorInputStream exte
         if (tableSize == maxTableSize && codeSize < maxCodeSize) {
             reAlignReading();
             codeSize++;
+            System.err.println("codeSize grew to " + codeSize);
         }
         return r;
     }
@@ -136,6 +138,7 @@ public class ZCompressorInputStream exte
             clearEntries();
             reAlignReading();
             codeSize = 9;
+            System.err.println("codeSize reset to 9 after reading clearCode");
             previousCode = -1;
             return 0;
         } else {



Mime
View raw message