[CCC]LimitedWriteStream class comment

Göran Hultgren gohu at rocketmail.com
Mon Feb 28 19:00:40 UTC 2000


Eh, I marked with "< blabla >" where it would be nice with "Command-6->Link to method":
------------------------------
A LimitedWriteStream is a specialized WriteStream that has a maximum size of the collection it
streams over. When this limit is reached a special limitBlock is executed. This can for example be
used to "bail out" of lengthy streaming operations before they have finished.

For a simple example take a look at the universal <Object printString>. Note the message
<SequenceableCollection class streamContents:limitedTo:> which creates a LimitedWriteStream. In
this case it prevents very large (or possibly recursive) objectstructures to "overdo" their
textual representation.
------------------------------

regards, Göran

=====
Göran Hultgren, goran.hultgren at bluefish.se
icq#:6136722, GSM: +46 709 472152, http://www.bluefish.se
"First they ignore you. Then they laugh at you.
Then they fight you. Then you win." -- Gandhi
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com





More information about the Squeak-dev mailing list