ReadWriteStream.st
changeset 21133 b367d15fb612
parent 20425 a859a0719330
child 21242 19fabe339f8b
child 22800 80923ef07646
--- a/ReadWriteStream.st	Thu Dec 15 13:54:31 2016 +0100
+++ b/ReadWriteStream.st	Thu Dec 15 13:55:00 2016 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1989 by Claus Gittinger
 	      All Rights Reserved
@@ -102,16 +100,6 @@
         ].
     ].
     ^ super next:count
-!
-
-peek
-    "return the element to be read next without advancing read position.
-     If there are no more elements, nil is returned."
-
-    (position >= readLimit) ifTrue:[^ self pastEndRead].
-    ^ collection at:(position+1)
-
-    "Modified: 5.2.1996 / 21:57:47 / stefan"
 ! !
 
 !ReadWriteStream methodsFor:'accessing'!
@@ -198,6 +186,18 @@
     ^ (readLimit ? 0) max:(position ? 0).
 ! !
 
+!ReadWriteStream methodsFor:'reading'!
+
+peek
+    "return the element to be read next without advancing read position.
+     If there are no more elements, nil is returned."
+
+    (position >= readLimit) ifTrue:[^ self pastEndRead].
+    ^ collection at:(position+1)
+
+    "Modified: 5.2.1996 / 21:57:47 / stefan"
+! !
+
 !ReadWriteStream class methodsFor:'documentation'!
 
 version