I am a thread-safe class that maps between standard Stream protocol and
a single message to another object (its selector is pluggable and should
roughly correspond to #nextPutAll:). I am, in fact, the class that
implements the global Transcript object.
Answer a new instance of the receiver, that uses the message identified
by anAssociation to perform write operations. anAssociation's
key is the receiver, while its value is the selector.
new
This method should not be called for instances of this class.
1.195.2 TextCollector: accessing
cr
Emit a new-line (carriage return) to the Transcript
endEntry
Emit two new-lines. This method is present for compatibility with
VisualWorks.
next: anInteger put: anObject
Write anInteger copies of anObject to the Transcript
next: n putAll: aString startingAt: pos
Write aString to the Transcript
nextPut: aCharacter
Emit aCharacter to the Transcript
show: aString
Write aString to the Transcript
showCr: aString
Write aString to the Transcript, followed by a new-line character
showOnNewLine: aString
Write aString to the Transcript, preceded by a new-line character
1.195.3 TextCollector: printing
print: anObject
Print anObject's representation to the Transcript
printOn: aStream
Print a representation of the receiver onto aStream
1.195.4 TextCollector: set up
message
Answer an association representing the message to be sent
to perform write operations. The key is the receiver, the value is the
selector
message: receiverToSelectorAssociation
Set the message to be sent to perform write operations
to the one represented by anAssociation. anAssociation's key is the
receiver, while its value is the selector
1.195.5 TextCollector: storing
store: anObject
Print Smalltalk code which evaluates to anObject on the Transcript
storeOn: aStream
Print Smalltalk code which evaluates to the receiver onto aStream
This document was generated
on July, 23 2009
using texi2html