ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephane Bailliez <sbaill...@imediation.com>
Subject RE: cvs commit: jakarta-ant/src/main/org/apache/tools/ant Default Logger.java
Date Tue, 11 Dec 2001 14:58:26 GMT
> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org]

> On Tue, 11 Dec 2001, Stephane Bailliez <sbailliez@imediation.com>
> 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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message