The JDOM XMLOutputter has some StringBuffer intensive code.
XMLOutputter has a method called outputString. outputString
uses a StringWriter, and java.io.StringWriter has methods for
getting the underlying StringBuffer or getting the String
converted from it.
So the bigger the XML document you are trying to output, the
more use of StringBuffer you'll wind up with.
--Paul
P.S. JDOM is available at www.jdom.org. I was able to look at
the source for XMLOutputter at this link (which you will
probably have to cut and paste back together)
http://cvs.jdom.org/cgi-bin/viewcvs.cgi/jdom/src/java/org/jdom/output/XMLOutputter.java?rev=1.80&content-type=text/vnd.viewcvs-markup
--- Bill Pugh <pugh@cs.umd.edu> wrote:
> As I mentioned before, we are looking at introducing a new
> unsynchronized StringBuffer class and changing the way either
> kind of
> StringBuffer is converted into a String.
>
> Does anyone have suggestions for
> codes/applications/benchmarks that
> perform a lot of StringBuffer manipulations (both operations
> on
> StringBuffers and converting them to Strings), either
> directly or
> generated by javac from String concatenation?
>
> Bill
> -------------------------------
> JavaMemoryModel mailing list -
http://www.cs.umd.edu/~pugh/java/memoryModel
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/
-------------------------------
JavaMemoryModel mailing list - http://www.cs.umd.edu/~pugh/java/memoryModel
This archive was generated by hypermail 2b29 : Thu Oct 13 2005 - 07:00:39 EDT