Browse Source

provide a finish method separate from close - merge from commons-compress

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@741608 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
ca6ea64af9
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/main/org/apache/tools/bzip2/CBZip2OutputStream.java

+ 5
- 5
src/main/org/apache/tools/bzip2/CBZip2OutputStream.java View File

@@ -571,7 +571,7 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants {

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 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants {
}
}

nBytes = bytesOut;
//nBytes = bytesOut;
for (i = 0; i < 16; i++) {
if (inUse16[i]) {
bsW(1, 1);
@@ -826,7 +826,7 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants {
}

/* Now the selectors. */
nBytes = bytesOut;
//nBytes = bytesOut;
bsW (3, nGroups);
bsW (15, nSelectors);
for (i = 0; i < nSelectors; i++) {
@@ -837,7 +837,7 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants {
}

/* Now the coding tables. */
nBytes = bytesOut;
//nBytes = bytesOut;

for (t = 0; t < nGroups; t++) {
int curr = len[t][0];
@@ -856,7 +856,7 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants {
}

/* And finally, the block data proper */
nBytes = bytesOut;
//nBytes = bytesOut;
selCtr = 0;
gs = 0;
while (true) {


Loading…
Cancel
Save