edu.upenn.cis.pdtb.util
Class PDTBStringBuffer
java.lang.Object
edu.upenn.cis.pdtb.util.PDTBStringBuffer
- public class PDTBStringBuffer
- extends java.lang.Object
Internal use only. This provides a small subset of the functionality of
StringBuffer, but avoids synchronization overhead. Amortized cost of inserting
a character is O(1).
- Author:
- nikhild
|
Constructor Summary |
PDTBStringBuffer(int initialCapacity)
Creates a new instance of PDTBStringBuffer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PDTBStringBuffer
public PDTBStringBuffer(int initialCapacity)
- Creates a new instance of PDTBStringBuffer
append
public void append(char c)
append
public void append(java.lang.String s,
int start,
int end)
append
public void append(java.lang.String s)
append
public void append(char[] s,
int start,
int end)
append
public void append(char[] s)
delete
public void delete()
length
public int length()
toString
public java.lang.String toString()