NonPositionableExternalStream.st
changeset 14758 6a70a7006093
parent 12754 25745c828a99
child 15720 bfa2381a971a
child 18026 fa8a879502cb
equal deleted inserted replaced
14757:03b9f44f2f82 14758:6a70a7006093
   510     ^ self positionError
   510     ^ self positionError
   511 ! !
   511 ! !
   512 
   512 
   513 !NonPositionableExternalStream methodsFor:'reading'!
   513 !NonPositionableExternalStream methodsFor:'reading'!
   514 
   514 
       
   515 next
       
   516     "return the next element, if available.
       
   517      If nothing is available, this does never raise a read-beyond end signal.
       
   518      Instead, nil is returned immediately.
       
   519 
       
   520      Redefined, to wait on pipes and sockets"
       
   521 
       
   522     self readWait.
       
   523     ^ super next
       
   524 !
       
   525 
   515 nextOrNil
   526 nextOrNil
   516     "like #next, this returns the next element, if available.
   527     "like #next, this returns the next element, if available.
   517      If nothing is available, this does never raise a read-beyond end signal.
   528      If nothing is available, this does never raise a read-beyond end signal.
   518      Instead, nil is returned immediately.
   529      Instead, nil is returned immediately.
   519 
   530 
   520      Redefined, to wait on pipes and sockets"
   531      Redefined, to wait on pipes and sockets"
   521 
   532 
   522     self atEnd ifTrue:[^ nil].
   533     self atEnd ifTrue:[^ nil].
   523     ^ self next
   534     ^ super nextOrNil
       
   535 !
       
   536 
       
   537 peek
       
   538     "Redefined, to wait on pipes and sockets"
       
   539 
       
   540     self readWait.
       
   541     ^ super peek
   524 !
   542 !
   525 
   543 
   526 peekOrNil
   544 peekOrNil
   527     "like #peek, this returns the next element, if available.
   545     "like #peek, this returns the next element, if available.
   528      If nothing is available, this does never raise a read-beyond end signal.
   546      If nothing is available, this does never raise a read-beyond end signal.
   558 ! !
   576 ! !
   559 
   577 
   560 !NonPositionableExternalStream class methodsFor:'documentation'!
   578 !NonPositionableExternalStream class methodsFor:'documentation'!
   561 
   579 
   562 version
   580 version
   563     ^ '$Header: /cvs/stx/stx/libbasic/NonPositionableExternalStream.st,v 1.61 2010-03-04 15:11:43 stefan Exp $'
   581     ^ '$Header: /cvs/stx/stx/libbasic/NonPositionableExternalStream.st,v 1.62 2013-02-06 14:47:34 stefan Exp $'
   564 !
   582 !
   565 
   583 
   566 version_CVS
   584 version_CVS
   567     ^ '$Header: /cvs/stx/stx/libbasic/NonPositionableExternalStream.st,v 1.61 2010-03-04 15:11:43 stefan Exp $'
   585     ^ '$Header: /cvs/stx/stx/libbasic/NonPositionableExternalStream.st,v 1.62 2013-02-06 14:47:34 stefan Exp $'
   568 ! !
   586 ! !
       
   587