[squeak-dev] Re: squeak XTream

Colin Putney cputney at wiresong.ca
Wed Dec 2 14:46:44 UTC 2009


On 1-Dec-09, at 9:55 PM, Andreas Raab wrote:

>
> file := FileHandle open: 'file.txt' mode: 'rb'.
> stream := UTF8EncodingXTream on: BufferedXtream on: FileXtream on:  
> file.

For Filesystem, I've been working on something like this:

stream := aReference writeStream
	encoding: #utf8;
	buffer: 1024;
	yourself

The stream is responsible for managing the pipeline between its self  
and the handle.

If Nicolas is writing a separate Xtreams package, though, it's going  
to overlap a lot with Filesystem. Perhaps I should just depend on  
Xtreams, rather than duplicate the functionality.

Colin



More information about the Squeak-dev mailing list