StringBuffer : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

StringBuffer
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:

http://mindprod.com/jgloss/stringbuffer.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\stringbuffer.html
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.

IP:[65.110.21.43]
Your face IP:[54.145.124.143]
You are visitor number