class: ReadStream
authorClaus Gittinger <cg@exept.de>
Fri, 22 Mar 2013 15:24:53 +0100
changeset 14936 05740c019161
parent 14935 1da1e979948c
child 14937 808947598c5b
class: ReadStream changed: #size fixed to return the number of remaining elements to be read, not the overall (initial) size. Have to check if this affects any users of readStream
ReadStream.st
--- a/ReadStream.st	Fri Mar 22 15:20:07 2013 +0100
+++ b/ReadStream.st	Fri Mar 22 15:24:53 2013 +0100
@@ -145,12 +145,9 @@
 !
 
 size
-    "return the number of elements in the streamed collection."
+    "return the number of remaining elements in the streamed collection."
 
-    ^ collection size
-
-    "Created: 13.9.1996 / 18:14:35 / cg"
-    "Modified: 4.10.1997 / 17:59:45 / cg"
+    ^ collection size - position
 ! !
 
 !ReadStream methodsFor:'reading'!
@@ -850,9 +847,10 @@
 !ReadStream class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/ReadStream.st,v 1.65 2011-09-23 11:32:54 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ReadStream.st,v 1.66 2013-03-22 14:24:53 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/ReadStream.st,v 1.65 2011-09-23 11:32:54 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/ReadStream.st,v 1.66 2013-03-22 14:24:53 cg Exp $'
 ! !
+