|
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!
======================================================================
|