java.lang.Object | |
↳ | org.apache.xerces.parsers.XMLGrammarPreparser |
This class provides an easy way for a user to preparse grammars of various types. By default, it knows how to preparse external DTD's and schemas; it provides an easy way for user applications to register classes that know how to parse additional grammar types. By default, it does no grammar caching; but it provides ways for user applications to do so.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ENTITY_RESOLVER | Property identifier: entity resolver. | |||||||||
String | ERROR_HANDLER | Property identifier: error handler. | |||||||||
String | ERROR_REPORTER | Property identifier: error reporter. | |||||||||
String | GRAMMAR_POOL | Property identifier: grammar pool . | |||||||||
String | SYMBOL_TABLE | Property identifier: symbol table. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
fEntityResolver | |||||||||||
fErrorReporter | |||||||||||
fGrammarPool | |||||||||||
fLocale | |||||||||||
fSymbolTable |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor.
| |||||||||||
Constructs a preparser using the specified symbol table.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the registered entity resolver.
| |||||||||||
Returns the registered error handler.
| |||||||||||
Returns the registered grammar pool.
| |||||||||||
Return the Locale the XMLGrammarLoader is using.
| |||||||||||
Parse a grammar from a location identified by an
XMLInputSource.
| |||||||||||
Sets the entity resolver.
| |||||||||||
Sets the error handler.
| |||||||||||
Sets the grammar pool.
| |||||||||||
Set the locale to use for messages.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Property identifier: entity resolver.
Property identifier: error handler.
Property identifier: error reporter.
Property identifier: grammar pool .
Property identifier: symbol table.
Default constructor.
Constructs a preparser using the specified symbol table.
symbolTable | The symbol table to use. |
---|
Parse a grammar from a location identified by an XMLInputSource. This method also adds this grammar to the XMLGrammarPool
type | The type of the grammar to be constructed |
---|---|
is | The XMLInputSource containing this grammar's information If a URI is included in the systemId field, the parser will not expand this URI or make it available to the EntityResolver |
Grammar
.XNIException | thrown on an error in grammar construction |
---|---|
IOException | thrown if an error is encountered in reading the file |
Sets the entity resolver.
entityResolver | The new entity resolver. |
---|
Sets the error handler.
errorHandler | The error handler. |
---|
Sets the grammar pool.
grammarPool | The new grammar pool. |
---|
Set the locale to use for messages.
locale | The locale object to use for localization of messages. |
---|
XNIException | Thrown if the parser does not support the specified locale. |
---|