"
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
! !