edu.upenn.cis.ptb
Class PTBStringBuffer
java.lang.Object
edu.upenn.cis.ptb.PTBStringBuffer
- public class PTBStringBuffer
- 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 |
PTBStringBuffer(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 |
PTBStringBuffer
public PTBStringBuffer(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()