Like DTMStringPool, but threadsafe. It's been proposed that DTMs
share their string pool(s); that raises threadsafety issues which
this addresses. Of course performance is inferior to that of the
bare-bones version.
Command-line unit test driver. This test relies on the fact that
this version of the pool assigns indices consecutively, starting
from zero, as new unique strings are encountered.
removeAllElements
public synchronized void removeAllElements()(Code)
stringToIndex
public synchronized int stringToIndex(String s)(Code)
integer index uniquely identifying the value of this string.
Fields inherited from org.apache.xml.dtm.ref.DTMStringPool