added autoflushing
[org.ibex.io.git] / src / org / ibex / io / Stream.java
index a1bf021..b7e32b4 100644 (file)
@@ -5,7 +5,6 @@ import java.io.*;
 import java.net.*;
 import java.util.zip.*;
 import org.ibex.util.*;
-import org.ibex.net.*;
 
 /** plays the role of InputStream, OutputStream, Reader and Writer, with logging and unchecked exceptions */
 public class Stream {
@@ -55,7 +54,7 @@ public class Stream {
     public void   unread(String s)                 { in.unread(s); }
 
     public void   println()                        { println(""); }
-    public void   println(String s)                { logWrite(s); out.write(s); out.write(newLine); }
+    public void   println(String s)                { logWrite(s); out.write(s); out.write(newLine); flush(); }
 
     public void   flush()                          { if (out != null) try { out.w.flush(); } catch(IOException e) { ioe(e); } }
     public void   close()                          { in.close(); out.close(); }