StringBuffer : Java Glossary


allows you to edit Strings. In  Java version 1.5 or later, you should normally use StringBuilder instead which is not thread-safe, but it is quicker.

If you know the precise length of the String you are building in advance, usually you can build it more efficiently with a char[] ca and use new String( ca ) to convert the result.

You can use a ByteArrayStream as a sort of StringBuffer for bytes.

Learning More

Oracle’s Javadoc on StringBuffer class : available:
Oracle’s Javadoc on String class : available:

This page is posted
on the web at:

Optional Replicator mirror
on local hard disk J:

Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number