Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4032746
Votes 0
Synopsis Deflater doesn't have a way to flush
Category java:classes_util
Reported Against 1.1beta3
Release Fixed
State 11-Closed, duplicate of 4077821, request for enhancement
Priority: 3-Medium
Related Bugs 4077821
Submit Date 17-FEB-1997
Description




The java.util.zip.Deflater class does not provide access to
the "partial flush" feature of the zlib library.  Thus, the
DeflaterOutputStream cannot (and does not) implement
the flush method.  However, this is a breach of the
OutputStream interface contract.  The flush method, to quote
its documentation, "will write any buffered output bytes".

It is clear that DeflaterOutputStream was written with the
thought of a single-shot compression of a whole file.  However,
I am using zlib as a continuous-stream compresser.  I need to
be able to flush it!

======================================================================
Work Around





======================================================================
Evaluation
N/A
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang