|
|
@@ -381,6 +381,16 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants { |
|
|
if (closed) { |
|
|
if (closed) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
finish(); |
|
|
|
|
|
super.close(); |
|
|
|
|
|
bsStream.close(); |
|
|
|
|
|
closed = true; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected void finish() throws IOException { |
|
|
|
|
|
if (closed) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (runLength > 0) { |
|
|
if (runLength > 0) { |
|
|
writeRun(); |
|
|
writeRun(); |
|
|
@@ -388,9 +398,6 @@ public class CBZip2OutputStream extends OutputStream implements BZip2Constants { |
|
|
currentChar = -1; |
|
|
currentChar = -1; |
|
|
endBlock(); |
|
|
endBlock(); |
|
|
endCompression(); |
|
|
endCompression(); |
|
|
closed = true; |
|
|
|
|
|
super.close(); |
|
|
|
|
|
bsStream.close(); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void flush() throws IOException { |
|
|
public void flush() throws IOException { |
|
|
|