JDK-4859913 : java.util.zip.Deflater should expose ZLIB's deflate (strm, flush)
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 1.4.2
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_98
  • CPU: x86
  • Submitted: 2003-05-07
  • Updated: 2010-03-18
  • Resolved: 2010-03-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Duplicate :  
Relates :  
Description

Name: nt126004			Date: 05/07/2003


A DESCRIPTION OF THE REQUEST :
ZLIB can flush its output with "int deflate (z_streamp strm, int flush)" (see http://www.gzip.org/zlib/manual.html#deflate).  Java's ZLIB interface should be expanded by one method to provide access, in the classes java.util.zip.Deflater and for convenience java.util.zip.DeflaterOutputStream.  The Z_FULL_FLUSH flag is key; Z_SYNC_FLUSH would be nice.


JUSTIFICATION :
For some data, better compression is obtained with more frequent flushes (more deflate "blocks").  See http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&th=fb3b2f6b1b1a988d&rnum=4 for a case in point.  Flushing is also needed when random access is required.
(Review ID: 185351) 
======================================================================

Comments
EVALUATION sync_flush and full_flush are added into Deflater to address 4206909.
23-09-2009

EVALUATION Although it's nice to have complete access to the functionality in zlib, this particular feature seems like a low priority one at this time. ###@###.### 2003-05-07
07-05-2003