#REFACTORING
authorClaus Gittinger <cg@exept.de>
Tue, 22 Mar 2016 12:35:39 +0100
changeset 19396 f2f97c9c3e72
parent 19395 37f5d5f46cc2
child 19397 8962f82110e1
#REFACTORING class: Stream comment/format in: #nextDecimalInteger: #nextDecimalNumber: #nextUnsignedInt16MSB:
Stream.st
--- a/Stream.st	Tue Mar 22 12:14:01 2016 +0100
+++ b/Stream.st	Tue Mar 22 12:35:39 2016 +0100
@@ -1394,6 +1394,11 @@
     ].    
     ^ (bH bitShift:8) bitOr:bL
 
+    "
+     ((ReadStream on:#[16r10 16r20 16r30]) nextUnsignedInt16MSB:true) hexPrintString
+     ((ReadStream on:#[16r10 16r20 16r30]) nextUnsignedInt16MSB:false) hexPrintString
+    "
+
     "Modified: 11.7.1996 / 10:07:20 / cg"
 !
 
@@ -3419,7 +3424,8 @@
 nextDecimalInteger:numChars
     "read and return the next integer of numChars size from the receiver stream.
      Does NOT skip separators.
-     Leaves the stream positioned after the digits"
+     Leaves the stream positioned after the digits.
+     Raises an error, if the characters cannot be converted to an integer"
 
     |chars|
 
@@ -3452,7 +3458,8 @@
 nextDecimalNumber:numChars
     "read and return the next number of numChars size from the receiver stream.
      Does NOT skip separators.
-     Leaves the stream positioned after the digits"
+     Leaves the stream positioned after the digits.
+     Raises an error, if the characters cannot be converted to a number"
 
     |chars|