|
|
Class: TextCollectorStream
Object
|
+--Stream
|
+--PeekableStream
|
+--PositionableStream
|
+--WriteStream
|
+--TextCollectorStream
- Package:
- stx:libbasic
- Category:
- Streams-Misc
- Version:
- rev:
1.2
date: 2006-04-06 10:54:06
- user: stefan
- file: TextCollectorStream.st directory: libbasic
- module: stx stc-classLibrary: libbasic
- Author:
- Stefan Vogel
a textCollectorStream is much like a regular writeStream.
In addition to collecting characters, it does a delayed update
of its collection, and may be used as a model for a TextView to
work like a TextCollector.
Currently ListViews are optimezed for StringCollections as model.
So stream on a StringCollection for best performance.
WriteStream
TextCollector
StringCollection
defaults
-
defaultLineLimit
-
the number of lines remembered by default
accessing
-
access
-
return the value of the instance variable 'access' (automatically generated)
-
access: something
-
set the value of the instance variable 'access' (automatically generated)
-
lineLimit
-
return the value of the instance variable 'lineLimit' (automatically generated)
-
lineLimit: something
-
set the value of the instance variable 'lineLimit' (automatically generated)
initialization
-
initialize
-
-
on: aCollection
-
-
on: aCollection from: start to: end
-
-
with: aCollection
-
writing
-
nextPut: anObject
-
an Object may be a Character (cr or nl), or anything
responding to #printString.
-
show: anObject
-
-
showCR: anObject
-
|s|
s := TextCollectorStream on:StringCollection new.
s show:'Hello '.
s showCR:'World'.
s contents inspect
|
|