Roles of FileStream (was: Re: New SqueakMap)
Yoshiki Ohshima
yoshiki at squeakland.org
Wed Apr 12 22:25:35 UTC 2006
Josh,
> It seems to me that character-oriented streams (and any other streams
> that deal with structured data) should be layered on top of byte-
> oriented streams, as is done by SmartRefStream (through its
> superclass, DataStream). A SmartRefStream doesn't care whether it's
> ultimately reading from / writing to a buffer in memory, from a file,
> or a network socket connection; that's the responsibility of its
> 'byteStream'.
Almost, yes. Just the fact that SmarRefStream sends #ascii (old
day's #text, I consider) and #binary and sometimes it reads some
encoded text from byteStream suggests it is overdue of refactoring.
-- Yoshiki
More information about the Squeak-dev
mailing list
|