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. |