< prev index next >

src/com/sun/org/apache/xerces/internal/parsers/XMLGrammarCachingConfiguration.java

Print this page
rev 2127 : 8048021: Remove @version tag in jaxp repo
Reviewed-by: joehw


  45  * Xerces's grammar caching facilities.  It extends the
  46  * XIncludeAwareParserConfiguration and thus may validate documents
  47  * according to XML schemas or DTD's.  It also allows the user to
  48  * preparse a grammar, and to lock the grammar pool
  49  * implementation such that no more grammars will be added.</p>
  50  * <p> Using the com.sun.org.apache.xerces.internal.xni.parser property, an
  51  * application may instantiate a Xerces SAX or DOM parser with
  52  * this configuration.  When invoked in this manner, the default
  53  * behaviour will be elicited; to use this configuration's
  54  * specific facilities, the user will need to reference it
  55  * directly.</p>
  56  * <p>
  57  * In addition to the features and properties recognized by the base
  58  * parser configuration, this class recognizes these additional
  59  * features and properties:
  60  * <ul>
  61  * </ul>
  62  *
  63  * @author Neil Graham, IBM
  64  *
  65  * @version $Id: XMLGrammarCachingConfiguration.java,v 1.6 2010-11-01 04:40:10 joehw Exp $
  66  */
  67 public class XMLGrammarCachingConfiguration
  68     extends XIncludeAwareParserConfiguration {
  69 
  70     //
  71     // Constants
  72     //
  73 
  74     // a larg(ish) prime to use for a symbol table to be shared
  75     // among
  76     // potentially man parsers.  Start one as close to 2K (20
  77     // times larger than normal) and see what happens...
  78     public static final int BIG_PRIME = 2039;
  79 
  80     // the static symbol table to be shared amongst parsers
  81     protected static final SynchronizedSymbolTable fStaticSymbolTable =
  82             new SynchronizedSymbolTable(BIG_PRIME);
  83 
  84     // the Grammar Pool to be shared similarly
  85     protected static final XMLGrammarPoolImpl fStaticGrammarPool =




  45  * Xerces's grammar caching facilities.  It extends the
  46  * XIncludeAwareParserConfiguration and thus may validate documents
  47  * according to XML schemas or DTD's.  It also allows the user to
  48  * preparse a grammar, and to lock the grammar pool
  49  * implementation such that no more grammars will be added.</p>
  50  * <p> Using the com.sun.org.apache.xerces.internal.xni.parser property, an
  51  * application may instantiate a Xerces SAX or DOM parser with
  52  * this configuration.  When invoked in this manner, the default
  53  * behaviour will be elicited; to use this configuration's
  54  * specific facilities, the user will need to reference it
  55  * directly.</p>
  56  * <p>
  57  * In addition to the features and properties recognized by the base
  58  * parser configuration, this class recognizes these additional
  59  * features and properties:
  60  * <ul>
  61  * </ul>
  62  *
  63  * @author Neil Graham, IBM
  64  *

  65  */
  66 public class XMLGrammarCachingConfiguration
  67     extends XIncludeAwareParserConfiguration {
  68 
  69     //
  70     // Constants
  71     //
  72 
  73     // a larg(ish) prime to use for a symbol table to be shared
  74     // among
  75     // potentially man parsers.  Start one as close to 2K (20
  76     // times larger than normal) and see what happens...
  77     public static final int BIG_PRIME = 2039;
  78 
  79     // the static symbol table to be shared amongst parsers
  80     protected static final SynchronizedSymbolTable fStaticSymbolTable =
  81             new SynchronizedSymbolTable(BIG_PRIME);
  82 
  83     // the Grammar Pool to be shared similarly
  84     protected static final XMLGrammarPoolImpl fStaticGrammarPool =


< prev index next >