Class SoftReferenceSymbolTableConfiguration

  • All Implemented Interfaces:
    XML11Configurable, org.apache.xerces.xni.parser.XMLComponentManager, org.apache.xerces.xni.parser.XMLParserConfiguration, org.apache.xerces.xni.parser.XMLPullParserConfiguration

    public class SoftReferenceSymbolTableConfiguration
    extends XIncludeAwareParserConfiguration
    This parser configuration extends the default configuration allowing Xerces to handle usage scenarios where the names in the XML documents being parsed are mostly unique by installing a memory sensitive SymbolTable. The internalized strings stored in this SymbolTable are softly reachable and may be cleared by the garbage collector in response to memory demand.
    Version:
    $Id: SoftReferenceSymbolTableConfiguration.java 478344 2006-11-22 22:19:56Z mrglavas $
    Author:
    Peter McCracken, IBM
    See Also:
    SoftReferenceSymbolTable
    • Constructor Detail

      • SoftReferenceSymbolTableConfiguration

        public SoftReferenceSymbolTableConfiguration()
        Default constructor.
      • SoftReferenceSymbolTableConfiguration

        public SoftReferenceSymbolTableConfiguration​(SymbolTable symbolTable)
        Constructs a parser configuration using the specified symbol table.
        Parameters:
        symbolTable - The symbol table to use.
      • SoftReferenceSymbolTableConfiguration

        public SoftReferenceSymbolTableConfiguration​(SymbolTable symbolTable,
                                                     org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
        Constructs a parser configuration using the specified symbol table and grammar pool.

        Parameters:
        symbolTable - The symbol table to use.
        grammarPool - The grammar pool to use.
      • SoftReferenceSymbolTableConfiguration

        public SoftReferenceSymbolTableConfiguration​(SymbolTable symbolTable,
                                                     org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool,
                                                     org.apache.xerces.xni.parser.XMLComponentManager parentSettings)
        Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings.

        Parameters:
        symbolTable - The symbol table to use.
        grammarPool - The grammar pool to use.
        parentSettings - The parent settings.