Finally instead of whining about it, I changed MapLoader to use
PrintWriter. Enjoy.
At 09:31 PM 6/19/2001 -0400, Andriy Shapochka wrote:
>I am all for it. I like to think of StringBuffer as a class for internal
>usage like performance improvement, etc. and try to give a user the
>opportunity to work with streams and strings every time it is possible.
>
>Andriy.
>
>----- Original Message -----
>From: "Andrei Adamchik" <aadamchi..obox.com>
>To: <cayenne-deve..bjectstyle.org>
>Sent: Tuesday, June 19, 2001 8:32 PM
>Subject: "storeDataMap" method
>
>
> > I suggest defining "MapLoader.storeDataMap" in a form like:
> >
> > public void storeDataMap(PrintWriter out, DataMap map);
> >
> >
> > I think this is more efficient then using a StringBuffer, cause big models
> > can be easily piped to a file or network connection, without storing a big
> > buffer in a memory.
> >
> > Also, using a StringWriter can give access to StringBuffer if needed.
> >
> >
> >
> > Andrei
> >
> >
Andrei
This archive was generated by hypermail 2b30 : Sat Aug 04 2001 - 16:21:25 EDT