#FEATURE by exept
authorClaus Gittinger <cg@exept.de>
Wed, 30 Oct 2019 21:33:49 +0100
changeset 6726 9e386937fc31
parent 6725 48ab339411d2
child 6727 7297280b7c28
#FEATURE by exept class: TextCollector added: #entryStream:
TextCollector.st
--- a/TextCollector.st	Wed Oct 30 11:37:26 2019 +0100
+++ b/TextCollector.st	Wed Oct 30 21:33:49 2019 +0100
@@ -365,6 +365,16 @@
     "Modified (comment): / 19-02-2019 / 22:37:47 / Claus Gittinger"
 !
 
+entryStream:aStream
+    "changes the entryStream.
+     This is the stream which gets all of my lines via nextPut/nextPutLine/nextPutAll.
+     Can be changed to (temporarily) divert the output to some file
+     and/or to duplicate (send to multiple destinations) via a splitter or filterStream.
+     (see example in SplittingWriteStream)"
+    
+    entryStream := aStream.
+!
+
 lineLimit
     "return the number of text-lines I am supposed to hold when collecting.
      Nil means: unlimited"