All Implemented Interfaces:
XMLComponentManager
All Known Implementing Classes:
XPointerParserConfiguration, CSVConfiguration, XMLPullParserConfiguration, SoftReferenceSymbolTableConfiguration, StandardParserConfiguration, PSVIConfiguration, XIncludeAwareParserConfiguration, NonValidatingParserConfiguration, DTDConfiguration, DOMConfigurationImpl, XML11Configuration, XML11DTDConfiguration, IntegratedParserConfiguration, XMLGrammarCachingConfiguration, AbstractConfiguration, SchemaParsingConfig, BasicParserConfiguration, XML11NonValidatingConfiguration, SecurityConfiguration, NonValidatingConfiguration, XIncludeParserConfiguration
By separating the configuration of a parser from the specific parser instance, applications can create new configurations and re-use the existing parser components and external API generators (e.g. the DOMParser and SAXParser).
The internals of any specific parser configuration instance are hidden. Therefore, each configuration may implement the parsing mechanism any way necessary. However, the parser configuration should follow these guidelines:
reset
method on each component before parsing.
This is only required if the configuration is re-using existing
components that conform to the XMLComponent
interface.
If the configuration uses all custom parts, then it is free to
implement everything as it sees fit as long as it follows the
other guidelines.
setFeature
and setProperty
method
on each component during parsing to propagate features and properties
that have changed. This is only required if the configuration is
re-using existing components that conform to the XMLComponent
interface. If the configuration uses all custom parts, then it is free
to implement everything as it sees fit as long as it follows the other
guidelines.
Arnaud
- Le Hors, IBMAndy
- Clark, IBM$
- Id: XMLParserConfiguration.java 447244 2006-09-18 05:20:40Z mrglavas $Method from org.apache.xerces.xni.parser.XMLParserConfiguration Summary: |
---|
addRecognizedFeatures, addRecognizedProperties, getDTDContentModelHandler, getDTDHandler, getDocumentHandler, getEntityResolver, getErrorHandler, getFeature, getLocale, getProperty, parse, setDTDContentModelHandler, setDTDHandler, setDocumentHandler, setEntityResolver, setErrorHandler, setFeature, setLocale, setProperty |
Method from org.apache.xerces.xni.parser.XMLParserConfiguration Detail: |
---|
|
|
|
|
|
|
|
|
|
|
The parser can use this method to instruct this configuration to begin parsing an XML document from any valid input source (a character stream, a byte stream, or a URI). Parsers may not invoke this method while a parse is in progress. Once a parse is complete, the parser may then parse another XML document. This method is synchronous: it will not return until parsing has ended. If a client application wants to terminate parsing early, it should throw an exception. When this method returns, all characters streams and byte streams opened by the parser are closed. |
|
|
|
|
|
|
|
|