org.apache.xerces.parsers
Class SoftReferenceSymbolTableConfiguration

java.lang.Object
  extended by org.apache.xerces.util.ParserConfigurationSettings
      extended by org.apache.xerces.parsers.XML11Configuration
          extended by org.apache.xerces.parsers.XIncludeAwareParserConfiguration
              extended by org.apache.xerces.parsers.SoftReferenceSymbolTableConfiguration
All Implemented Interfaces:
XML11Configurable, XMLComponentManager, XMLParserConfiguration, 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 Summary
SoftReferenceSymbolTableConfiguration()
          Default constructor.
SoftReferenceSymbolTableConfiguration(SymbolTable symbolTable)
          Constructs a parser configuration using the specified symbol table.
SoftReferenceSymbolTableConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool)
          Constructs a parser configuration using the specified symbol table and grammar pool.
SoftReferenceSymbolTableConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings)
          Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings.
 
Method Summary
 
Methods inherited from class org.apache.xerces.parsers.XIncludeAwareParserConfiguration
getFeature, setFeature
 
Methods inherited from class org.apache.xerces.parsers.XML11Configuration
cleanup, getDocumentHandler, getDTDContentModelHandler, getDTDHandler, getEntityResolver, getErrorHandler, getLocale, parse, parse, setDocumentHandler, setDTDContentModelHandler, setDTDHandler, setEntityResolver, setErrorHandler, setInputSource, setLocale, setProperty
 
Methods inherited from class org.apache.xerces.util.ParserConfigurationSettings
addRecognizedFeatures, addRecognizedProperties, getProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.xerces.xni.parser.XMLParserConfiguration
addRecognizedFeatures, addRecognizedProperties, getProperty
 

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,
                                             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,
                                             XMLGrammarPool grammarPool,
                                             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.