PositionableStream.st
changeset 19885 7a8a85b3fa8d
parent 19591 185835d2d0e5
child 19890 484307b07a7b
equal deleted inserted replaced
19884:e2af0c5af2b4 19885:7a8a85b3fa8d
   414 !
   414 !
   415 
   415 
   416 reset
   416 reset
   417     "set the read position to the beginning of the collection"
   417     "set the read position to the beginning of the collection"
   418 
   418 
   419     self resetPosition
   419     position := 0.
   420 
   420 
   421     "
   421     "
   422      |s|
   422      |s|
   423 
   423 
   424      s := 'hello world' readStream.
   424      s := 'hello world' readStream.
   427      Transcript showCR:(s next:10).
   427      Transcript showCR:(s next:10).
   428     "
   428     "
   429 !
   429 !
   430 
   430 
   431 resetPosition
   431 resetPosition
       
   432     <resource: #obsolete>
   432     "set the read position to the beginning of the collection"
   433     "set the read position to the beginning of the collection"
   433 
   434 
   434     position := 0
   435     position := 0
   435 
   436 
   436     "
   437     "