You can read the implementation code. It came with your JDK. Open your JDK folder and find the src.zip file. Unzip that file to a directory, and you can browse all of Sun's implementation code for the built-in classes, with the exception of native methods.
Here's the code for that method from the StringBuffer.java source file:
Raghu J<br />SCJP 1.4<br /> <br />The Wind and waters are always<br />on the side of the ablest navigators.<br /><a href="http://groups.yahoo.com/group/scjp_share" target="_blank" rel="nofollow">SCJP Group</a><br /><a href="http://groups.yahoo.com/group/JavaBeat_SCWCD" target="_blank" rel="nofollow">SCWCD Group</a>