Squeak Class Documentation category index | class index  
 
Stream
  category: Collections-Streams
  superclass: Object
  subclasses: MailAddressTokenizer HtmlTokenizer PositionableStream DummyStream FlashFileStream DataStream ObjectSocket AttributedTextStream

I am an abstract class that represents an accessor for a sequence of objects. This sequence is referred to as my "contents".

instance methods
  accessing
  binary
contents
flush
next
next:
next:put:
nextMatchAll:
nextMatchFor:
nextPut:
nextPutAll:
upToEnd

  alternate syntax
  dialect
withStyleFor:do:

  as yet unclassified
  sleep

  converting
  asVRMLStream

  enumerating
  do:

  file open/close
  close

  filter streaming
  write:

  printing
  print:
printHtml:

  testing
  atEnd
closed
isStream
nextWordsPutAll:

class methods
  instance creation
  new

instance methods
  accessing top  
 

binary


 

contents

Answer all of the contents of the receiver.


 

flush

Do nothing by default


 

next

Answer the next object accessible by the receiver.


 

next:

Answer the next anInteger number of objects accessible by the receiver.


 

next:put:

Make anObject be the next anInteger number of objects accessible by the
receiver. Answer anObject.


 

nextMatchAll:

Answer true if next N objects are the ones in aColl,
else false. Advance stream of true, leave as was if false.


 

nextMatchFor:

Gobble the next object and answer whether it is equal to the argument,
anObject.


 

nextPut:

Insert the argument, anObject, as the next object accessible by the
receiver. Answer anObject.


 

nextPutAll:

Append the elements of aCollection to the sequence of objects accessible
by the receiver. Answer aCollection.


 

upToEnd

answer the remaining elements in the string


  alternate syntax top  
 

dialect


 

withStyleFor:do:


  as yet unclassified top  
 

sleep

an FTP-based stream might close the connection here


  converting top  
 

asVRMLStream


  enumerating top  
 

do:

Evaluate aBlock for each of the objects accessible by receiver.


  file open/close top  
 

close


  filter streaming top  
 

write:


  printing top  
 

print:

Have anObject print itself on the receiver.


 

printHtml:


  testing top  
 

atEnd

Answer whether the receiver can access any more objects.


 

closed


 

isStream

Return true if the receiver responds to the stream protocol


 

nextWordsPutAll:

Write the argument a word-like object in big endian format on the receiver.
May be used to write other than plain word-like objects (such as ColorArray).


class methods
  instance creation top  
 

new

Answer a new instance of the receiver (which is a class) with no indexable variables. Fail if the class is indexable.