performance - Is there an equivalent to StringWriter but with StringBuilder internally in Java? -
I've found that stringwriters use a stringbuff internally but if you do not need that synchronization overhead Is there a equivalent using a stringbilder inside a stringbuilder?
No, there is no equivalent using the Is there a logic behind your question, I do not think you are concerned but this aspect should be important, you can apply your own StringBuilder in the current standard Java API (at least 7, I did not check on 8).
StringWriter class But to check whether the difference is important, using
stringbinder . If so, keep your own, and otherwise, there is no problem.
Comments
Post a Comment