Author: bodewig
Date: Fri Feb 6 16:08:55 2009
New Revision: 741608
URL: http://svn.apache.org/viewvc?rev=741608&view=rev
Log:
provide a finish method separate from close - merge from commons-compress
Modified:
ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
Modified: ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
URL:
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java?rev=741608&r1=741607&r2=741608&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java
(original)
+++ ant/core/trunk/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java Fri
Feb 6 16:08:55 2009
@@ -571,7 +571,7 @@
int v, t, i, j, gs, ge, totc, bt, bc, iter;
int nSelectors = 0, alphaSize, minLen, maxLen, selCtr;
- int nGroups, nBytes;
+ int nGroups; //, nBytes;
alphaSize = nInUse + 2;
for (t = 0; t < N_GROUPS; t++) {
@@ -802,7 +802,7 @@
}
}
- nBytes = bytesOut;
+ //nBytes = bytesOut;
for (i = 0; i < 16; i++) {
if (inUse16[i]) {
bsW(1, 1);
@@ -826,7 +826,7 @@
}
/* Now the selectors. */
- nBytes = bytesOut;
+ //nBytes = bytesOut;
bsW (3, nGroups);
bsW (15, nSelectors);
for (i = 0; i < nSelectors; i++) {
@@ -837,7 +837,7 @@
}
/* Now the coding tables. */
- nBytes = bytesOut;
+ //nBytes = bytesOut;
for (t = 0; t < nGroups; t++) {
int curr = len[t][0];
@@ -856,7 +856,7 @@
}
/* And finally, the block data proper */
- nBytes = bytesOut;
+ //nBytes = bytesOut;
selCtr = 0;
gs = 0;
while (true) {