java.lang
Class StringBuffer

java.lang.Object
  extended byjava.lang.StringBuffer

public final class StringBuffer
extends Object

An expandable string of characters. Actually not very expandable! 09/25/2001 added number formatting thanks to Martin E. Nielsen. You must ensure that the buffer is large enough to take the formatted number.


Constructor Summary
StringBuffer()
           
StringBuffer(int length)
           
StringBuffer(String aString)
           
 
Method Summary
 StringBuffer append(boolean aBoolean)
           
 StringBuffer append(char aChar)
           
 StringBuffer append(double aDouble)
           
 StringBuffer append(float aFloat)
           
 StringBuffer append(int aInt)
           
 StringBuffer append(long aLong)
           
 StringBuffer append(Object aObject)
           
 StringBuffer append(String s)
           
 char charAt(int i)
           
 StringBuffer delete(int start, int end)
           
 char[] getChars()
          Retrieves the contents of the StringBuffer in the form of an array of characters.
 int length()
           
 String toString()
          Returns the empty string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait
 

Constructor Detail

StringBuffer

public StringBuffer()

StringBuffer

public StringBuffer(String aString)

StringBuffer

public StringBuffer(int length)
Method Detail

delete

public StringBuffer delete(int start,
                           int end)

append

public StringBuffer append(String s)

append

public StringBuffer append(Object aObject)

append

public StringBuffer append(boolean aBoolean)

append

public StringBuffer append(char aChar)

append

public StringBuffer append(int aInt)

append

public StringBuffer append(long aLong)

append

public StringBuffer append(float aFloat)

append

public StringBuffer append(double aDouble)

toString

public String toString()
Description copied from class: Object
Returns the empty string. It's here to satisfy javac.

Overrides:
toString in class Object

charAt

public char charAt(int i)

length

public int length()

getChars

public char[] getChars()
Retrieves the contents of the StringBuffer in the form of an array of characters.