[jdom-interest] Text class in the api
arosen at silverstream.com
Tue Oct 23 08:45:11 PDT 2001
I agree, this would be a good time to go down the Text node route and see
This info certainly puts a hole in my String vs. StringBuffer argument
terest). I was assuming that characters() was called multiple times only if
the character data was longer than the parser's internal buffer, but I guess
that's wrong. Bummer.
> There are other ways to do this of course, but I think using
> a Text class
> has advantages. We might consider implementing the Text
> internal storage as
> char instead of String or StringBuffer. By doing this, we
> could get the
> fast(er) append functionality of StringBuffer but near the
> efficiency of
> String which would still be the most common use case.
When would char be faster than StringBuffer?
More information about the jdom-interest