at.dms.util
Class SimpleStringBuffer

java.lang.Object
  extended by at.dms.util.SimpleStringBuffer

public final class SimpleStringBuffer
extends Object

A class to handle a sequence of characters.


Constructor Summary
SimpleStringBuffer()
           
 
Method Summary
 void append(char c)
          Appends the specified character to this buffer.
 void append(String s)
          Appends the specified string to this buffer.
static void release(SimpleStringBuffer buffer)
          Returns an unused simple string buffer to the pool.
static SimpleStringBuffer request()
          Returns a new simple string buffer from the buffer pool.
 void reset()
           
 String toString()
          Returns a string representation of the data in this buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleStringBuffer

public SimpleStringBuffer()
Method Detail

reset

public void reset()

toString

public String toString()
Returns a string representation of the data in this buffer.

Overrides:
toString in class Object

append

public void append(String s)
Appends the specified string to this buffer.

Parameters:
s - the string to append

append

public void append(char c)
Appends the specified character to this buffer.

Parameters:
c - the character to append

request

public static SimpleStringBuffer request()
Returns a new simple string buffer from the buffer pool.


release

public static void release(SimpleStringBuffer buffer)
Returns an unused simple string buffer to the pool.