Are there any plans to implement Read support for GzipOutputStream/BZip2OutputStream (other XxxOutputStream)?
In current implementation the user reads source(uncompressed) data and PUSHES it to GzipOutputStream, which the writes compressed data to the baseOutputStream passed in constructor.
For stream pipelining purposes it would be very nice to have GzipOutputStream family to work in the opposite way: user would read compressed data from GzipOutputStream which would PULL data from source when needed (until EOF).
For GzipOutputStream this sould be just reading the required amount of data from uncompressed stream. For ZipOutputStream this might require some events like NeedNextEnry or so.
With this ability the application can do any other kind of processing of compressed data on-the-fly (in current write-only implementation the one has to check if XxxOutputStream has produced some output).
The example of such work is .Net's CryptoStream class which constructor has a parameter CryptoStreamMode that allows to work encrypting stream in both ways (pushing and pulling data from the source stream)
Thank you
PS: I don't see now any useful application of write support in XxxInputStream though it'd be possible too.