This is the DTD-only parser configuration. It extends the basic
configuration with a standard set of parser components appropriate
to DTD-centric validation. Since
the Xerces2 reference implementation document and DTD scanner
implementations are capable of acting as pull parsers, this
configuration implements the
XMLPullParserConfiguration interface.
In addition to the features and properties recognized by the base
parser configuration, this class recognizes these additional
features and properties:
author: Arnaud Le Hors, IBM author: Andy Clark, IBM author: Neil Graham, IBM version: $Id: DTDConfiguration.java 548192 2007-06-18 03:34:19Z mrglavas $
cleanup() If the application decides to terminate parsing before the xml document
is fully parsed, the application should call this method to free any
resource allocated during parsing.
parse(boolean complete) Parses the document in a pull parsing fashion.
Parameters: complete - True if the pull parser should parse theremaining document completely.
Constructs a parser configuration using the specified symbol table and
grammar pool.
REVISIT:
Grammar pool will be updated when the new validation engine is
implemented.
Parameters: symbolTable - The symbol table to use. Parameters: grammarPool - The grammar pool to use.
Constructs a parser configuration using the specified symbol table,
grammar pool, and parent settings.
REVISIT:
Grammar pool will be updated when the new validation engine is
implemented.
Parameters: symbolTable - The symbol table to use. Parameters: grammarPool - The grammar pool to use. Parameters: parentSettings - The parent settings.
Check a feature. If feature is know and supported, this method simply
returns. Otherwise, the appropriate exception is thrown.
Parameters: featureId - The unique identifier (URI) of the feature. throws: XMLConfigurationException - Thrown for configuration error.In general, components shouldonly throw this exception ifit is reallya critical error.
Check a property. If the property is know and supported, this method
simply returns. Otherwise, the appropriate exception is thrown.
Parameters: propertyId - The unique identifier (URI) of the propertybeing set. throws: XMLConfigurationException - Thrown for configuration error.In general, components shouldonly throw this exception ifit is reallya critical error.
If the application decides to terminate parsing before the xml document
is fully parsed, the application should call this method to free any
resource allocated during parsing. For example, close all opened streams.
Parses the document in a pull parsing fashion.
Parameters: complete - True if the pull parser should parse theremaining document completely. True if there is more document to parse. exception: XNIException - Any XNI exception, possibly wrapping another exception. exception: IOException - An IO exception from the parser, possiblyfrom a byte stream or character streamsupplied by the parser. See Also:DTDConfiguration.setInputSource
Sets the input source for the document to parse.
Parameters: inputSource - The document's input source. exception: XMLConfigurationException - Thrown if there is a configuration error when initializing theparser. exception: IOException - Thrown on I/O error. See Also:DTDConfiguration.parse(boolean)
Set the locale to use for messages.
Parameters: locale - The locale object to use for localization of messages. exception: XNIException - Thrown if the parser does not support thespecified locale.
Fields inherited from org.apache.xerces.parsers.BasicParserConfiguration