| java.lang.Object org.apache.xerces.util.SymbolTable org.apache.xerces.util.SynchronizedSymbolTable
SynchronizedSymbolTable | final public class SynchronizedSymbolTable extends SymbolTable (Code) | | Synchronized symbol table.
This class moved into the util package since it's needed by multiple
other classes (CachingParserPool, XMLGrammarCachingConfiguration).
author: Andy Clark, IBM version: $Id: SynchronizedSymbolTable.java 447241 2006-09-18 05:12:57Z mrglavas $ |
Method Summary | |
public String | addSymbol(String symbol) Adds the specified symbol to the symbol table and returns a
reference to the unique symbol. | public String | addSymbol(char[] buffer, int offset, int length) Adds the specified symbol to the symbol table and returns a
reference to the unique symbol. | public boolean | containsSymbol(String symbol) Returns true if the symbol table already contains the specified
symbol. | public boolean | containsSymbol(char[] buffer, int offset, int length) Returns true if the symbol table already contains the specified
symbol. |
SynchronizedSymbolTable | public SynchronizedSymbolTable(SymbolTable symbolTable)(Code) | | Constructs a synchronized symbol table.
|
SynchronizedSymbolTable | public SynchronizedSymbolTable()(Code) | | |
SynchronizedSymbolTable | public SynchronizedSymbolTable(int size)(Code) | | |
addSymbol | public String addSymbol(String symbol)(Code) | | Adds the specified symbol to the symbol table and returns a
reference to the unique symbol. If the symbol already exists,
the previous symbol reference is returned instead, in order
guarantee that symbol references remain unique.
Parameters: symbol - The new symbol. |
addSymbol | public String addSymbol(char[] buffer, int offset, int length)(Code) | | Adds the specified symbol to the symbol table and returns a
reference to the unique symbol. If the symbol already exists,
the previous symbol reference is returned instead, in order
guarantee that symbol references remain unique.
Parameters: buffer - The buffer containing the new symbol. Parameters: offset - The offset into the buffer of the new symbol. Parameters: length - The length of the new symbol in the buffer. |
containsSymbol | public boolean containsSymbol(String symbol)(Code) | | Returns true if the symbol table already contains the specified
symbol.
Parameters: symbol - The symbol to look for. |
containsSymbol | public boolean containsSymbol(char[] buffer, int offset, int length)(Code) | | Returns true if the symbol table already contains the specified
symbol.
Parameters: buffer - The buffer containing the symbol to look for. Parameters: offset - The offset into the buffer. Parameters: length - The length of the symbol in the buffer. |
|
|