massive bugfixes in stream library
[org.ibex.io.git] / src / org / ibex / io / CharBufReader.java
index 225fd86..89fbc63 100644 (file)
@@ -83,6 +83,8 @@ class CharBufReader extends Reader {
         if (bufSize()<=0) return;
         try {
             writer.write(buf, start, end-start);
+            writer.flush();
+            start = end = 0;
         } catch (IOException e) {
             Stream.ioe(e);
         }