> -----Original Message-----
> From: Stefan Bodewig [mailto:[EMAIL PROTECTED]

> On Tue, 11 Dec 2001, Stephane Bailliez <[EMAIL PROTECTED]>
> wrote:
> 
> > If the PrintStream is set to autoflush you should not need this, it
> > will be flushed for each newline.
> > 
> > new PrintStream(oldstream, true);
> 
> It is oldstream that is buffering the output, will wrapping another
> stream around that help here?

It calls flush of the wrapped stream if there is any '\n' encountered in
what is being written.
So it just does what printlnAndFlush() is doing.

Stephane.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to