First time here? Check out the FAQ!
x

What are the messages one can send to textFileStream?

+1 vote
335 views

From Carla's 2011 KISS talk, I gathered 

Messages you can send to textFileStream
linesInFile
maxValue
maxValueForColumn:
minValue
minValueForColumn:
nextLine
nextNumber
nextParameters

Are there more messages for textFileStream since then?
I was unable to locate a list in the User Guide, Kyma X Revealed, or Forum. Just embedded examples and examples with Sound Parameter assistant. 

Side question: is there a reference guide for Kyma specific SmallTalk like the Capytalk Reference has for Capytalk? I do want to give a shout and say that Capytalk Reference is Amazing.

reference video: https://vimeo.com/152075300#t=1940s

asked Feb 17, 2019 in Capytalk & Smalltalk by jonbellona (Adept) (1,300 points)

1 Answer

0 votes
 
Best answer
The messages for an instance of TextFileStream:

addHelpStringDescriptorsTo:
columns
lines
linesInFile
maxValue
maxValueForColumn:
minValue
minValueForColumn:
nextLine
nextLineAsByteString
nextLineAsTokenArray
nextLineIncludingComments
nextLineStream
nextNumber
nextParameters
quickColumnCount
scanner
setCachedValues

 

It's ultimately a subclass of Stream so it should also responds to these messages:

atEnd
close
contents
contentsBetween:and:
contentsSpecies
cr
crtab
crtab:
do:
emphasis
emphasis:
fileOutChanges
fileOutChangesFor:
flush
isStream
logTime
next
next:
next:into:
next:into:startingAt:
next:put:
next:putAll:startingAt:
nextAvailable:
nextAvailable:into:startingAt:
nextChunkPut:
nextMatchFor:
nextPut:
nextPutAll:
print:
skipThrough:
space
store:
tab
tab:
through:
throughEndOfLine
timeStamp
upTo:
upToEnd
upToEndOfLine
answered Feb 17, 2019 by alan-jackson (Virtuoso) (15,840 points)
selected Feb 19, 2019 by jonbellona
...