List Info

Thread: More zlib...




More zlib...
country flaguser name
Italy
2007-05-18 09:35:57
One more patch for today, allowing the DeflateStream to
decorate not 
only a ReadStream but also a WriteStream.  To do this, I
just added a 
generic class to turn a ReadStream decorator into a
WriteStream 
decorator (the PipeStream).

More practically, this means that you can do:

    fs := FileStream open: 'foo.gz' mode: 'w'.
    gzipStream := GZipDeflateStream compressingTo: fs.
    Object fileOutOn: gzipStream.
    gzipStream close.
    fs close.

Paolo

_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )