org.apache.xerces.impl.dtd
public class XMLDTDLoader extends XMLDTDProcessor implements XMLGrammarLoader
This component requires the following features and properties. It know ho to set them if no one else does:from the
Version: $Id: XMLDTDLoader.java,v 1.11 2004/10/04 21:57:30 mrglavas Exp $
| Field Summary | |
|---|---|
| static String | ENTITY_RESOLVER Property identifier: entity resolver. |
| protected static String | ERROR_HANDLER Property identifier: error handler. |
| protected XMLDTDScannerImpl | fDTDScanner |
| protected XMLEntityManager | fEntityManager |
| protected XMLEntityResolver | fEntityResolver Entity resolver . |
| protected Locale | fLocale |
| protected static String | STANDARD_URI_CONFORMANT_FEATURE Feature identifier: standard uri conformant feature. |
| Constructor Summary | |
|---|---|
| XMLDTDLoader() Deny default construction; we need a SymtolTable! | |
| XMLDTDLoader(SymbolTable symbolTable) | |
| XMLDTDLoader(SymbolTable symbolTable, XMLGrammarPool grammarPool) | |
| Method Summary | |
|---|---|
| XMLEntityResolver | getEntityResolver() Returns the registered entity resolver. |
| XMLErrorHandler | getErrorHandler() Returns the registered error handler. |
| boolean | getFeature(String featureId)
Returns the state of a feature.
|
| Locale | getLocale() Return the Locale the XMLGrammarLoader is using. |
| Object | getProperty(String propertyId)
Returns the state of a property.
|
| String[] | getRecognizedProperties()
Returns a list of property identifiers that are recognized by
this component. |
| Grammar | loadGrammar(XMLInputSource source)
Returns a Grammar object by parsing the contents of the
entity pointed to by source.
|
| protected void | reset() |
| void | setEntityResolver(XMLEntityResolver entityResolver)
Sets the entity resolver.
|
| void | setErrorHandler(XMLErrorHandler errorHandler)
Sets the error handler.
|
| void | setFeature(String featureId, boolean state)
Sets the state of a feature. |
| void | setLocale(Locale locale)
Set the locale to use for messages.
|
| void | setProperty(String propertyId, Object value)
Sets the value of a property. |
Parameters: featureId The feature identifier.
Throws: XMLConfigurationException Thrown on configuration error.
Parameters: propertyId The property identifier.
Throws: XMLConfigurationException Thrown on configuration error.
Parameters: source the location of the entity which forms the starting point of the grammar to be constructed.
Throws: IOException When a problem is encountered reading the entity XNIException When a condition arises (such as a FatalError) that requires parsing of the entity be terminated.
Parameters: entityResolver The new entity resolver.
Parameters: errorHandler The error handler.
Note: Components should silently ignore features that do not affect the operation of the component.
Parameters: featureId The feature identifier. state The state of the feature.
Throws: SAXNotRecognizedException The component should not throw this exception. SAXNotSupportedException The component should not throw this exception.
Parameters: locale The locale object to use for localization of messages.
Throws: XNIException Thrown if the parser does not support the specified locale.
Note: Components should silently ignore properties that do not affect the operation of the component.
Parameters: propertyId The property identifier. value The value of the property.
Throws: SAXNotRecognizedException The component should not throw this exception. SAXNotSupportedException The component should not throw this exception.