More on output truncation
    Greg Hudson 
    ghudson at MIT.EDU
       
    Sat Mar  6 08:39:35 PST 1999
    
    
  
I've figured out why Kaffe truncated my program's output to 512
characters: System.out uses a BufferedOutputStream with a 128-byte
buffer, and nothing automatically flushes a BufferedOutputStream in
Kaffe.  If I add a flush, all is well.
I couldn't find any machinery in the JDK to automatically do flushes
either, so presumably the application is responsible for that.  But
the JDK's PrintStream() will automatically do a flush on a PrintStream
if autoFlush is set and you print() or write() a string with a newline
in it.  That accounts for the difference in behavior.
    
    
More information about the kaffe
mailing list