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

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

public class StringPool
extends java.lang.Object

Pool for String objects. Used to reused no more used String object -> memory performance

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

Constructor Summary
StringPool()
           
 
Method Summary
static void clean()
          Cleans the pool
static java.lang.String getString()
          Returns a String object not used.
static void init()
          Initialises the pool.
static void returnString(java.lang.String sb)
          Freed a String previously used
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPool

public StringPool()
Method Detail

clean

public static void clean()
Cleans the pool


getString

public static java.lang.String getString()
Returns a String object not used.

Returns:
an available String object

init

public static void init()
Initialises the pool. prepare several String objects to be used and reused


returnString

public static void returnString(java.lang.String sb)
Freed a String previously used

Parameters:
sb - the String returned to be used agin


European Bioinformatics InstituteMicroarray Informatics Team