[squeak-dev] Re: squeak XTream

Eliot Miranda eliot.miranda at gmail.com
Wed Dec 2 17:22:57 UTC 2009


Hi Colin,

On Wed, Dec 2, 2009 at 6:46 AM, Colin Putney <cputney at wiresong.ca> wrote:

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

please make that accessor bufferSize: :)  I could well imagine wanting to
pass in a specific buffer (e.g. one that records access history for
debugging) and would want to use buffer: as the accessor :)


>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20091202/bc4bafb7/attachment.htm


More information about the Squeak-dev mailing list