#DOCUMENTATION by stefan
authorStefan Vogel <sv@exept.de>
Thu, 15 Dec 2016 13:55:00 +0100
changeset 21133 b367d15fb612
parent 21132 48e561eba578
child 21134 8afa60876626
#DOCUMENTATION by stefan class: ReadWriteStream category of: #peek
ReadWriteStream.st
--- 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