| java.lang.Object org.apache.xml.utils.StringBufferPool
StringBufferPool | public class StringBufferPool (Code) | | This class pools string buffers, since they are reused so often.
String buffers are good candidates for pooling, because of
their supporting character arrays.
|
Method Summary | |
public static synchronized void | free(FastStringBuffer sb) Return a string buffer back to the pool. | public static synchronized FastStringBuffer | get() Get the first free instance of a string buffer, or create one
if there are no free instances. |
free | public static synchronized void free(FastStringBuffer sb)(Code) | | Return a string buffer back to the pool.
Parameters: sb - Must be a non-null reference to a string buffer. |
get | public static synchronized FastStringBuffer get()(Code) | | Get the first free instance of a string buffer, or create one
if there are no free instances.
A string buffer ready for use. |
|
|