xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Boag/CAM/Lotus" <Scott_Boag/CAM/Lo...@lotus.com>
Subject Re: Auto-buffering in BaseSerializer
Date Sun, 28 Nov 1999 02:15:43 GMT

> What about
>
>   writer = (writer instanceof BufferedWriter) ? writer : new
> BuffereWriter(writer);

The caller may purposely not want to have buffering occur (I have done this
many times).  In a general API, you shouldn't make these choices for the
caller... it needs to be up to them.

-scott






Mime
View raw message