eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'TextCollectorStream':

Home

everywhere
www.exept.de
for:
[back]

Class: TextCollectorStream


Inheritance:

   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

Description:


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.


Related information:

    WriteStream
    TextCollector
    StringCollection

Class protocol:

defaults
o  defaultLineLimit
the number of lines remembered by default


Instance protocol:

accessing
o  access
return the value of the instance variable 'access' (automatically generated)

o  access: something
set the value of the instance variable 'access' (automatically generated)

o  lineLimit
return the value of the instance variable 'lineLimit' (automatically generated)

o  lineLimit: something
set the value of the instance variable 'lineLimit' (automatically generated)

initialization
o  initialize

o  on: aCollection

o  on: aCollection from: start to: end

o  with: aCollection

writing
o  nextPut: anObject
an Object may be a Character (cr or nl), or anything
responding to #printString.

o  show: anObject

o  showCR: anObject


Examples:



    |s|
    s := TextCollectorStream on:StringCollection new.
    s show:'Hello '.
    s showCR:'World'.
    s contents inspect


ST/X 6.1.1; WebServer 1.620 at exept:8081; Wed, 23 May 2012 21:32:09 GMT