DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42713>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42713 ------- Additional Comments From [EMAIL PROTECTED] 2007-06-22 02:12 ------- Proposed patch: - finish added - close and finalize changed ------------------------------------------------------------------------------ /** * Finishes compressing to the underlying stream without closing it, * so that multiple compressors can write subsequently to the same * output stream. * * @throws IOException */ public void finish() throws IOException { OutputStream outShadow = this.out; if ( outShadow != null && this.data != null ) { try { if ( this.runLength > 0 ) { writeRun(); } this.currentChar = -1; endBlock(); endCompression(); // outShadow.close(); } finally { // this.out = null; this.data = null; } } } /** * Overriden to close the stream. */ protected void finalize() throws Throwable { if ( this.data != null ) { close(); super.finalize(); } } public void close() throws IOException { finish(); OutputStream outShadow = this.out; if ( outShadow != null ) { try { outShadow.close(); } finally { this.out = null; } } // OutputStream outShadow = this.out; // if ( outShadow != null ) { // try { // if ( this.runLength > 0 ) { // writeRun(); // } // this.currentChar = -1; // endBlock(); // endCompression(); // outShadow.close(); // } finally { // this.out = null; // this.data = null; // } // } } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]