GZipReadStream, etc.

Stefan Matthias Aust sma at 3plus4.de
Sun Feb 6 18:51:11 UTC 2000


Andrew,

you need to save a reference to the write stream, the GZipWriteStream will
write into.  This should work

| buffer writer |
writer := GZipWriteStream on: (buffer := WriteStream on: (ByteArray new)).
writer nextPutAll: stuff.
writer close.
buffer contents

See also FileList>>compressFile for an example (available in 2.7)


bye
--
Stefan Matthias Aust  //  Bevor wir fallen, fallen wir lieber auf.





More information about the Squeak-dev mailing list