java.lang
Class StringBuffer
java.lang.Object
|
+--java.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.
- Author:
- Martin E. Nielsen
StringBuffer
public StringBuffer()
StringBuffer
public StringBuffer(String aString)
StringBuffer
public StringBuffer(int length)
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.