EncodedStream.st
branchjv
changeset 20398 8cb53f870d39
parent 18883 765cf9dca720
parent 20363 e5590e63b27a
child 20578 39641ba8d6e0
--- a/EncodedStream.st	Mon Sep 19 08:39:59 2016 +0100
+++ b/EncodedStream.st	Mon Sep 19 08:46:27 2016 +0100
@@ -380,6 +380,10 @@
     stream flush
 !
 
+isEmpty
+    ^ stream isEmpty
+!
+
 isOpen
     ^ stream notNil and:[stream isOpen]
 !
@@ -499,7 +503,8 @@
 !
 
 size
-    "not correct, but probably better than 0"
+    "not always correct, but probably better than 0.
+     Better use #isEmpty."
 
     "/ is that better?
     "/ self error:'size of input is unknown (due to decoding)'