ReadWriteStream.st
author claus
Mon, 20 Dec 1993 18:32:29 +0100
changeset 27 d98f9dd437f7
parent 5 67342904af11
child 41 a14247b04d03
permissions -rw-r--r--
*** empty log message ***

"
 COPYRIGHT (c) 1989 by Claus Gittinger
	      All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"

WriteStream subclass:#ReadWriteStream
       instanceVariableNames:''
       classVariableNames:''
       poolDictionaries:''
       category:'Streams'
!

ReadWriteStream comment:'

COPYRIGHT (c) 1989 by Claus Gittinger
	      All Rights Reserved

$Header: /cvs/stx/stx/libbasic/ReadWriteStream.st,v 1.4 1993-10-13 02:13:21 claus Exp $
'!

!ReadWriteStream methodsFor: 'access-reading'!

peek
    (position > readLimit) ifTrue: [ ^ nil ].
    ^ collection at:position
!

next
    |p|
    (position > readLimit) ifTrue: [ ^ nil ].
    p := position.
    position := position + 1.
    ^ collection at:p
! !