edu.upenn.cis.pdtb.util
Class PDTBStringBuffer

java.lang.Object
  extended byedu.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
 
Method Summary
 void append(char c)
           
 void append(char[] s)
           
 void append(char[] s, int start, int end)
           
 void append(java.lang.String s)
           
 void append(java.lang.String s, int start, int end)
           
 void delete()
           
 int length()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PDTBStringBuffer

public PDTBStringBuffer(int initialCapacity)
Creates a new instance of PDTBStringBuffer

Method Detail

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()