uk.ac.ebi.adfconverter.common.util.pool
Class StringBufferPool

java.lang.Object
  extended byuk.ac.ebi.adfconverter.common.util.pool.StringBufferPool

public class StringBufferPool
extends java.lang.Object

Pool class for StringBufferPool objects Contains a list of available tables. Tables are initialised (created) once, to limit CPU consumption From Per Lila String Pool

Since:
19 sept. 2004
Version:
1
Author:
Pierre MARGUERITE

Constructor Summary
StringBufferPool()
           
 
Method Summary
static void clean()
          Cleans the pool
static java.lang.StringBuffer getString()
          Retrieved a previous initialised/ created object from the pool.
static void init()
          Inits the pool.
static void returnString(java.lang.StringBuffer sb)
          Returns a no more needed object to the pool for reuse.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBufferPool

public StringBufferPool()
Method Detail

clean

public static void clean()
Cleans the pool


getString

public static java.lang.StringBuffer getString()
Retrieved a previous initialised/ created object from the pool. If there is no more free/unused object, the pool size is double.

Returns:
a new/free/unused StringBuffer object

init

public static void init()
Inits the pool. Creates a given number of StringBuffer objects called pool


returnString

public static void returnString(java.lang.StringBuffer sb)
Returns a no more needed object to the pool for reuse.

Parameters:
sb - the StringBuffer object to return


European Bioinformatics InstituteMicroarray Informatics Team