Classes extended from StringBuffer:Object | --StringBuffer
This is an attempt at an exact clone of the StringBuffer class for Java It contains all of the same methods, and emulates the same methods and steps that are taken in Java. You have more control than simply using PHP's .= append feature, because you can work with only one string at a time, making adjustments to that buffer as you work, and call common requests on that buffer.
lang2003/04/16 11:03 PMJapha 1.0
@Ryan Gantt
@void append()
char charAt()
void deleteCharAt()
char[] getChars()
int indexOf()
void insert()
int length()
void reverse()
void setCharAt()
void setLength()
char[] subSequence()
String substring()
String toString()
void __construct()
Add a value to the end of the buffer.
Exception
public
Returns the character at a specific offset in a buffer.
The character at the specific offset
@
public
Removes a character from the buffer at a specific offset
public
Fill up a passed array with values from the buffer, beginning and ending at specific offsets
the modified array of chars
public
Returns the first occurence of a value in the buffer.
the index of the element, if found
@
public
Insert data into an already populated StringBuffer. Insert at a specific offset, and pushes existing text backwards.
Exception
public
Returns the length of the current buffer.
number of indices in the buffer
public
Flips the current buffer programmatically.
public
Changes the value of the character at the passed offset
public
Exception
@
Changes the length of the buffer, to accomodate more characters
public
Return a portion of the current buffer as an array.
A portion of the current buffer in char[] array format
public
Return a portion of the buffer, between the starting and ending offsets
A portion of the current buffer in String format
@
public
Overrides: Object::toString()
Returns a string representation of the completed buffer
@
Exception
@
public
Constructor. Takes initial char buffer as a parameter.