From ca6ea64af90cfa362146974b95a48388fa48490a Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Fri, 6 Feb 2009 16:08:55 +0000 Subject: [PATCH] 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 --- .../org/apache/tools/bzip2/CBZip2OutputStream.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java b/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java index b4922a859..ae2e9ac70 100644 --- a/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java +++ b/src/main/org/apache/tools/bzip2/CBZip2OutputStream.java @@ -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) {