org.apache.xml.dtm.ref
public class DTMSafeStringPool extends DTMStringPool
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.
Status: Passed basic test in main().
Method Summary | |
---|---|
String | indexToString(int i) |
static void | main(String[] args) Command-line unit test driver. |
void | removeAllElements() |
int | stringToIndex(String s) |
Returns: string whose value is uniquely identified by this integer index.
Throws: java.lang.ArrayIndexOutOfBoundsException if index doesn't map to a string.
Returns: integer index uniquely identifying the value of this string.