Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.parsers

public Class XML11DTDConfiguration

extends ParserConfigurationSettings
implements XMLPullParserConfiguration, XML11Configurable
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.parsers.XML11Configurable, com.sun.org.apache.xerces.internal.xni.parser.XMLPullParserConfiguration, com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration, com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager
Imports
com.sun.org.apache.xerces.internal.impl.Constants, .XML11DTDScannerImpl, .XML11DocumentScannerImpl, .XML11NSDocumentScannerImpl, .XMLDTDScannerImpl, .XMLDocumentScannerImpl, .XMLEntityHandler, .XMLEntityManager, .XMLErrorReporter, .XMLNSDocumentScannerImpl, .XMLVersionDetector, com.sun.org.apache.xerces.internal.impl.dtd.XML11DTDProcessor, .XML11DTDValidator, .XML11NSDTDValidator, .XMLDTDProcessor, .XMLDTDValidator, .XMLNSDTDValidator, com.sun.org.apache.xerces.internal.impl.dv.DTDDVFactory, com.sun.org.apache.xerces.internal.impl.msg.XMLMessageFormatter, com.sun.org.apache.xerces.internal.impl.validation.ValidationManager, com.sun.org.apache.xerces.internal.util.FeatureState, .ParserConfigurationSettings, .PropertyState, .Status, .SymbolTable, com.sun.org.apache.xerces.internal.xni.XMLDTDContentModelHandler, .XMLDTDHandler, .XMLDocumentHandler, .XMLLocator, .XNIException, com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool, com.sun.org.apache.xerces.internal.xni.parser.XMLComponent, .XMLComponentManager, .XMLConfigurationException, .XMLDTDScanner, .XMLDocumentScanner, .XMLDocumentSource, .XMLEntityResolver, .XMLErrorHandler, .XMLInputSource, .XMLPullParserConfiguration, java.io.IOException, java.util.ArrayList, .HashMap, .List, .Locale

This class is the DTD-only parser configuration used to parse XML 1.0 and XML 1.1 documents.

This class recognizes the following features and properties:

Authors
Elena Litani, IBM, Neil Graham, IBM, Michael Glavassevich, IBM, John Kim, IBM

Field Summary

Modifier and TypeField and Description
protected static final String
CONTINUE_AFTER_FATAL_ERROR

Feature identifier: continue after fatal error.

protected static final String
DATATYPE_VALIDATOR_FACTORY

Property identifier: datatype validator factory.

protected static final String
DOCUMENT_SCANNER

Property identifier document scanner:

protected static final String
DTD_PROCESSOR

Property identifier: DTD loader.

protected static final String
DTD_SCANNER

Property identifier: DTD scanner.

protected static final String
DTD_VALIDATOR

Property identifier: DTD validator.

protected static final String
ENTITY_MANAGER

Property identifier: entity manager.

protected static final String
ENTITY_RESOLVER

Property identifier: entity resolver.

protected static final String
ERROR_HANDLER

Property identifier: error handler.

protected static final String
ERROR_REPORTER

Property identifier: error reporter.

protected static final String
EXTERNAL_GENERAL_ENTITIES

Feature identifier: external general entities.

protected static final String
EXTERNAL_PARAMETER_ENTITIES

Feature identifier: external parameter entities.

private boolean
f11Initialized

Flag indiciating whether XML11 components have been initialized.

protected List<XMLComponent>
fCommonComponents

Common components: XMLEntityManager, XMLErrorReporter

protected List<XMLComponent>
fComponents

XML 1.0 Components.

protected boolean
fConfigUpdated

fConfigUpdated is set to true if there has been any change to the configuration settings, i.e a feature or a property was changed.

protected XMLDTDScanner
fCurrentDTDScanner

Current DTD scanner.

protected DTDDVFactory
fCurrentDVFactory

Current Datatype validator factory.

protected XMLDocumentScanner
fCurrentScanner

Current scanner

protected DTDDVFactory
fDatatypeValidatorFactory

The XML 1.0 Datatype validator factory.

protected XMLDocumentHandler
fDocumentHandler

The document handler.

protected XMLDTDContentModelHandler
fDTDContentModelHandler

The DTD content model handler.

protected XMLDTDHandler
fDTDHandler

The DTD handler.

protected XMLDTDProcessor
fDTDProcessor

The XML 1.0 DTD Processor .

protected XMLDTDScanner
fDTDScanner

The XML 1.0 DTD scanner.

protected XMLDTDValidator
fDTDValidator

The XML 1.0 DTD Validator: binds namespaces

protected XMLEntityManager
fEntityManager

Entity manager.

protected XMLErrorReporter
fErrorReporter

Error reporter.

protected XMLGrammarPool
fGrammarPool

Grammar pool.

protected XMLInputSource
protected XMLDocumentSource
fLastComponent

Last component in the document pipeline

protected Locale
protected XMLLocator
protected XMLNSDocumentScannerImpl
fNamespaceScanner

The XML 1.0 Document scanner that does namespace binding.

protected XMLDTDValidator
fNonNSDTDValidator

The XML 1.0 DTD Validator that does not bind namespaces

protected XMLDocumentScannerImpl
fNonNSScanner

The XML 1.0 Non-namespace implementation of scanner

protected boolean
fParseInProgress

True if a parse is in progress.

protected SymbolTable
protected ValidationManager
protected XMLVersionDetector
protected List<XMLComponent>
protected DTDDVFactory
fXML11DatatypeFactory

The XML 1.1 datatype factory.

protected XML11DocumentScannerImpl
fXML11DocScanner

The XML 1.1 document scanner that does not do namespace binding.

protected XML11DTDProcessor
fXML11DTDProcessor

The XML 1.1 DTD processor.

protected XML11DTDScannerImpl
fXML11DTDScanner

The XML 1.1 DTD scanner.

protected XML11DTDValidator
fXML11DTDValidator

The XML 1.1 DTD validator that does not do namespace binding.

protected XML11NSDocumentScannerImpl
fXML11NSDocScanner

The XML 1.1 document scanner that does namespace binding.

protected XML11NSDTDValidator
fXML11NSDTDValidator

The XML 1.1 DTD validator that does namespace binding.

protected static final String
JAXP_SCHEMA_LANGUAGE

Property identifier: JAXP schema language / DOM schema-type.

protected static final String
JAXP_SCHEMA_SOURCE

Property identifier: JAXP schema source/ DOM schema-location.

protected static final String
LOAD_EXTERNAL_DTD

Feature identifier: load external DTD.

protected static final String
NAMESPACE_BINDER

Property identifier: namespace binder.

protected static final String
NAMESPACES

Feature identifier: namespaces.

protected static final String
SYMBOL_TABLE

Property identifier: symbol table.

protected static final String
VALIDATION

Feature identifier: validation.

protected static final String
protected static final String
protected static final String
XML_STRING

Property identifier: xml string.

protected static final String
XMLGRAMMAR_POOL

Property identifier: grammar pool.

Inherited from com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings:
fFeaturesfParentSettingsfPropertiesfRecognizedFeaturesfRecognizedPropertiesPARSER_SETTINGS

Constructor Summary

AccessConstructor and Description
public
XML11DTDConfiguration()

Default constructor.

public
XML11DTDConfiguration(SymbolTable
The symbol table to use.
symbolTable
)

Constructs a parser configuration using the specified symbol table.

public
XML11DTDConfiguration(SymbolTable
The symbol table to use.
symbolTable
,
XMLGrammarPool
The grammar pool to use.
grammarPool
)

Constructs a parser configuration using the specified symbol table and grammar pool.

public
XML11DTDConfiguration(SymbolTable
The symbol table to use.
symbolTable
,
XMLGrammarPool
The grammar pool to use.
grammarPool
,
XMLComponentManager
The parent settings.
parentSettings
)

Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings.

Method Summary

Modifier and TypeMethod and Description
protected void
addCommonComponent(XMLComponent
The component to add.
component
)

Adds common component to the parser configuration.

protected void
addComponent(XMLComponent
The component to add.
component
)

Adds a component to the parser configuration.

protected void
addRecognizedParamsAndSetDefaults(XMLComponent
The component whose recognized features and properties will be added to the configuration
component
)

Adds all of the component's recognized features and properties to the list of default recognized features and properties, and sets default values on the configuration for features and properties which were previously absent from the configuration.

protected void
addXML11Component(XMLComponent
The component to add.
component
)

Adds an XML 1.1 component to the parser configuration.

protected FeatureState
checkFeature(String
The unique identifier (URI) of the feature.
featureId
)

Overrides com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings.checkFeature.

Check a feature.

protected PropertyState
checkProperty(String
The unique identifier (URI) of the property being set.
propertyId
)

Overrides com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings.checkProperty.

Check a property.

public void
cleanup()

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLPullParserConfiguration.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.

protected void
configurePipeline()

Configures the pipeline.

protected void
configureXML11Pipeline()

Configures the XML 1.1 pipeline.

public XMLDocumentHandler
public XMLDTDContentModelHandler
public XMLDTDHandler
public XMLEntityResolver

Returns:

The current entity resolver, or null if none has been registered.
getEntityResolver
()

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.getEntityResolver.

Return the current entity resolver.

public XMLErrorHandler

Returns:

The current error handler, or null if none has been registered.
getErrorHandler
()

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.getErrorHandler.

Return the current error handler.

public FeatureState

Returns:

true if the feature is supported
getFeatureState
(String
The feature identifier.
featureId
)

Overrides com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings.getFeatureState.

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager.getFeatureState.

Returns the state of a feature.

public Locale
private void
public void
parse(XMLInputSource
The input source.
source
)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.parse.

Parses the specified input source.

public boolean
parse(boolean
True if the pull parser should parse the remaining document completely.
complete
)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLPullParserConfiguration.parse.

Parses the document in a pull parsing fashion.

protected void
reset()

reset all XML 1.0 components before parsing and namespace context

protected void
resetCommon()

reset all common components before parsing

protected void
resetXML11()

reset all components before parsing and namespace context

public void
setDocumentHandler(XMLDocumentHandler
The document handler.
documentHandler
)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setDocumentHandler.

Sets the document handler on the last component in the pipeline to receive information about the document.

public void
public void
public void
setEntityResolver(XMLEntityResolver
The new entity resolver. Passing a null value will uninstall the currently installed resolver.
resolver
)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setEntityResolver.

Sets the resolver used to resolve external entities.

public void
setErrorHandler(XMLErrorHandler
The error handler.
errorHandler
)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setErrorHandler.

Allow an application to register an error event handler.

public void
setFeature(String
The unique identifier (URI) of the feature.
featureId
,
boolean
The requested state of the feature (true or false).
state
)

Overrides com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings.setFeature.

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setFeature.

Set the state of a feature.

public void
setInputSource(XMLInputSource
The document's input source.
inputSource
)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLPullParserConfiguration.setInputSource.

Sets the input source for the document to parse.

public void
setLocale(Locale
The locale object to use for localization of messages.
locale
)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setLocale.

Set the locale to use for messages.

public void
Inherited from com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings:
addRecognizedFeaturesaddRecognizedPropertiesgetFeaturegetFeaturegetPropertygetPropertygetPropertyState

Field Detail

CONTINUE_AFTER_FATAL_ERRORback to summary
protected static final String CONTINUE_AFTER_FATAL_ERROR

Feature identifier: continue after fatal error.

DATATYPE_VALIDATOR_FACTORYback to summary
protected static final String DATATYPE_VALIDATOR_FACTORY

Property identifier: datatype validator factory.

DOCUMENT_SCANNERback to summary
protected static final String DOCUMENT_SCANNER

Property identifier document scanner:

DTD_PROCESSORback to summary
protected static final String DTD_PROCESSOR

Property identifier: DTD loader.

DTD_SCANNERback to summary
protected static final String DTD_SCANNER

Property identifier: DTD scanner.

DTD_VALIDATORback to summary
protected static final String DTD_VALIDATOR

Property identifier: DTD validator.

ENTITY_MANAGERback to summary
protected static final String ENTITY_MANAGER

Property identifier: entity manager.

ENTITY_RESOLVERback to summary
protected static final String ENTITY_RESOLVER

Property identifier: entity resolver.

ERROR_HANDLERback to summary
protected static final String ERROR_HANDLER

Property identifier: error handler.

ERROR_REPORTERback to summary
protected static final String ERROR_REPORTER

Property identifier: error reporter.

EXTERNAL_GENERAL_ENTITIESback to summary
protected static final String EXTERNAL_GENERAL_ENTITIES

Feature identifier: external general entities.

EXTERNAL_PARAMETER_ENTITIESback to summary
protected static final String EXTERNAL_PARAMETER_ENTITIES

Feature identifier: external parameter entities.

f11Initializedback to summary
private boolean f11Initialized

Flag indiciating whether XML11 components have been initialized.

fCommonComponentsback to summary
protected List<XMLComponent> fCommonComponents

Common components: XMLEntityManager, XMLErrorReporter

fComponentsback to summary
protected List<XMLComponent> fComponents

XML 1.0 Components.

fConfigUpdatedback to summary
protected boolean fConfigUpdated

fConfigUpdated is set to true if there has been any change to the configuration settings, i.e a feature or a property was changed.

fCurrentDTDScannerback to summary
protected XMLDTDScanner fCurrentDTDScanner

Current DTD scanner.

fCurrentDVFactoryback to summary
protected DTDDVFactory fCurrentDVFactory

Current Datatype validator factory.

fCurrentScannerback to summary
protected XMLDocumentScanner fCurrentScanner

Current scanner

fDatatypeValidatorFactoryback to summary
protected DTDDVFactory fDatatypeValidatorFactory

The XML 1.0 Datatype validator factory.

fDocumentHandlerback to summary
protected XMLDocumentHandler fDocumentHandler

The document handler.

fDTDContentModelHandlerback to summary
protected XMLDTDContentModelHandler fDTDContentModelHandler

The DTD content model handler.

fDTDHandlerback to summary
protected XMLDTDHandler fDTDHandler

The DTD handler.

fDTDProcessorback to summary
protected XMLDTDProcessor fDTDProcessor

The XML 1.0 DTD Processor .

fDTDScannerback to summary
protected XMLDTDScanner fDTDScanner

The XML 1.0 DTD scanner.

fDTDValidatorback to summary
protected XMLDTDValidator fDTDValidator

The XML 1.0 DTD Validator: binds namespaces

fEntityManagerback to summary
protected XMLEntityManager fEntityManager

Entity manager.

fErrorReporterback to summary
protected XMLErrorReporter fErrorReporter

Error reporter.

fGrammarPoolback to summary
protected XMLGrammarPool fGrammarPool

Grammar pool.

fInputSourceback to summary
protected XMLInputSource fInputSource
fLastComponentback to summary
protected XMLDocumentSource fLastComponent

Last component in the document pipeline

fLocaleback to summary
protected Locale fLocale
fLocatorback to summary
protected XMLLocator fLocator
fNamespaceScannerback to summary
protected XMLNSDocumentScannerImpl fNamespaceScanner

The XML 1.0 Document scanner that does namespace binding.

fNonNSDTDValidatorback to summary
protected XMLDTDValidator fNonNSDTDValidator

The XML 1.0 DTD Validator that does not bind namespaces

fNonNSScannerback to summary
protected XMLDocumentScannerImpl fNonNSScanner

The XML 1.0 Non-namespace implementation of scanner

fParseInProgressback to summary
protected boolean fParseInProgress

True if a parse is in progress. This state is needed because some features/properties cannot be set while parsing (e.g. validation and namespaces).

fSymbolTableback to summary
protected SymbolTable fSymbolTable
fValidationManagerback to summary
protected ValidationManager fValidationManager
fVersionDetectorback to summary
protected XMLVersionDetector fVersionDetector
fXML11Componentsback to summary
protected List<XMLComponent> fXML11Components

XML 1.1. Components.

fXML11DatatypeFactoryback to summary
protected DTDDVFactory fXML11DatatypeFactory

The XML 1.1 datatype factory.

fXML11DocScannerback to summary
protected XML11DocumentScannerImpl fXML11DocScanner

The XML 1.1 document scanner that does not do namespace binding.

fXML11DTDProcessorback to summary
protected XML11DTDProcessor fXML11DTDProcessor

The XML 1.1 DTD processor.

fXML11DTDScannerback to summary
protected XML11DTDScannerImpl fXML11DTDScanner

The XML 1.1 DTD scanner.

fXML11DTDValidatorback to summary
protected XML11DTDValidator fXML11DTDValidator

The XML 1.1 DTD validator that does not do namespace binding.

fXML11NSDocScannerback to summary
protected XML11NSDocumentScannerImpl fXML11NSDocScanner

The XML 1.1 document scanner that does namespace binding.

fXML11NSDTDValidatorback to summary
protected XML11NSDTDValidator fXML11NSDTDValidator

The XML 1.1 DTD validator that does namespace binding.

JAXP_SCHEMA_LANGUAGEback to summary
protected static final String JAXP_SCHEMA_LANGUAGE

Property identifier: JAXP schema language / DOM schema-type.

JAXP_SCHEMA_SOURCEback to summary
protected static final String JAXP_SCHEMA_SOURCE

Property identifier: JAXP schema source/ DOM schema-location.

LOAD_EXTERNAL_DTDback to summary
protected static final String LOAD_EXTERNAL_DTD

Feature identifier: load external DTD.

NAMESPACE_BINDERback to summary
protected static final String NAMESPACE_BINDER

Property identifier: namespace binder.

NAMESPACESback to summary
protected static final String NAMESPACES

Feature identifier: namespaces.

SYMBOL_TABLEback to summary
protected static final String SYMBOL_TABLE

Property identifier: symbol table.

VALIDATIONback to summary
protected static final String VALIDATION

Feature identifier: validation.

VALIDATION_MANAGERback to summary
protected static final String VALIDATION_MANAGER
XML11_DATATYPE_VALIDATOR_FACTORYback to summary
protected static final String XML11_DATATYPE_VALIDATOR_FACTORY
XML_STRINGback to summary
protected static final String XML_STRING

Property identifier: xml string.

XMLGRAMMAR_POOLback to summary
protected static final String XMLGRAMMAR_POOL

Property identifier: grammar pool.

Constructor Detail

XML11DTDConfigurationback to summary
public XML11DTDConfiguration()

Default constructor.

XML11DTDConfigurationback to summary
public XML11DTDConfiguration(SymbolTable symbolTable)

Constructs a parser configuration using the specified symbol table.

Parameters
symbolTable:SymbolTable

The symbol table to use.

XML11DTDConfigurationback to summary
public XML11DTDConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool)

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:SymbolTable

The symbol table to use.

grammarPool:XMLGrammarPool

The grammar pool to use.

XML11DTDConfigurationback to summary
public XML11DTDConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings)

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:SymbolTable

The symbol table to use.

grammarPool:XMLGrammarPool

The grammar pool to use.

parentSettings:XMLComponentManager

The parent settings.

Method Detail

addCommonComponentback to summary
protected void addCommonComponent(XMLComponent component)

Adds common component to the parser configuration. This method will also add all of the component's recognized features and properties to the list of default recognized features and properties.

Parameters
component:XMLComponent

The component to add.

addComponentback to summary
protected void addComponent(XMLComponent component)

Adds a component to the parser configuration. This method will also add all of the component's recognized features and properties to the list of default recognized features and properties.

Parameters
component:XMLComponent

The component to add.

addRecognizedParamsAndSetDefaultsback to summary
protected void addRecognizedParamsAndSetDefaults(XMLComponent component)

Adds all of the component's recognized features and properties to the list of default recognized features and properties, and sets default values on the configuration for features and properties which were previously absent from the configuration.

Parameters
component:XMLComponent

The component whose recognized features and properties will be added to the configuration

addXML11Componentback to summary
protected void addXML11Component(XMLComponent component)

Adds an XML 1.1 component to the parser configuration. This method will also add all of the component's recognized features and properties to the list of default recognized features and properties.

Parameters
component:XMLComponent

The component to add.

checkFeatureback to summary
protected FeatureState checkFeature(String featureId) throws XMLConfigurationException

Overrides com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings.checkFeature.

Check a feature. If feature is know and supported, this method simply returns. Otherwise, the appropriate exception is thrown.

Parameters
featureId:String

The unique identifier (URI) of the feature.

Exceptions
XMLConfigurationException:
Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.
checkPropertyback to summary
protected PropertyState checkProperty(String propertyId) throws XMLConfigurationException

Overrides com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings.checkProperty.

Check a property. If the property is know and supported, this method simply returns. Otherwise, the appropriate exception is thrown.

Parameters
propertyId:String

The unique identifier (URI) of the property being set.

Returns:PropertyState

Doc from com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings.checkProperty.

the PropertyState

Exceptions
XMLConfigurationException:
Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.
cleanupback to summary
public void cleanup()

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLPullParserConfiguration.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. For example, close all opened streams.

configurePipelineback to summary
protected void configurePipeline()

Configures the pipeline.

configureXML11Pipelineback to summary
protected void configureXML11Pipeline()

Configures the XML 1.1 pipeline.

Note

this method also resets the new XML11 components.

getDocumentHandlerback to summary
public XMLDocumentHandler getDocumentHandler()

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.getDocumentHandler.

Returns the registered document handler.

getDTDContentModelHandlerback to summary
public XMLDTDContentModelHandler getDTDContentModelHandler()

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.getDTDContentModelHandler.

Returns the registered DTD content model handler.

getDTDHandlerback to summary
public XMLDTDHandler getDTDHandler()

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.getDTDHandler.

Returns the registered DTD handler.

getEntityResolverback to summary
public XMLEntityResolver getEntityResolver()

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.getEntityResolver.

Return the current entity resolver.

Returns:XMLEntityResolver

The current entity resolver, or null if none has been registered.

See Also
setEntityResolver
getErrorHandlerback to summary
public XMLErrorHandler getErrorHandler()

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.getErrorHandler.

Return the current error handler.

Returns:XMLErrorHandler

The current error handler, or null if none has been registered.

See Also
setErrorHandler
getFeatureStateback to summary
public FeatureState getFeatureState(String featureId) throws XMLConfigurationException

Overrides com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings.getFeatureState.

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLComponentManager.getFeatureState.

Returns the state of a feature.

Parameters
featureId:String

The feature identifier.

Returns:FeatureState

true if the feature is supported

Exceptions
XMLConfigurationException:
Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.
getLocaleback to summary
public Locale getLocale()

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.getLocale.

Returns the locale.

initXML11Componentsback to summary
private void initXML11Components()
parseback to summary
public void parse(XMLInputSource source) throws XNIException, IOException

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.parse.

Parses the specified input source.

Parameters
source:XMLInputSource

The input source.

Exceptions
XNIException:
Throws exception on XNI error.
IOException:
Throws exception on i/o error.
parseback to summary
public boolean parse(boolean complete) throws XNIException, IOException

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLPullParserConfiguration.parse.

Doc from com.sun.org.apache.xerces.internal.xni.parser.XMLPullParserConfiguration.parse.

Parses the document in a pull parsing fashion.

Parameters
complete:boolean

True if the pull parser should parse the remaining document completely.

Returns:boolean

True if there is more document to parse.

Exceptions
XNIException:
Any XNI exception, possibly wrapping another exception.
IOException:
An IO exception from the parser, possibly from a byte stream or character stream supplied by the parser.
resetback to summary
protected void reset() throws XNIException

reset all XML 1.0 components before parsing and namespace context

resetCommonback to summary
protected void resetCommon() throws XNIException

reset all common components before parsing

resetXML11back to summary
protected void resetXML11() throws XNIException

reset all components before parsing and namespace context

setDocumentHandlerback to summary
public void setDocumentHandler(XMLDocumentHandler documentHandler)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setDocumentHandler.

Sets the document handler on the last component in the pipeline to receive information about the document.

Parameters
documentHandler:XMLDocumentHandler

The document handler.

setDTDContentModelHandlerback to summary
public void setDTDContentModelHandler(XMLDTDContentModelHandler handler)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setDTDContentModelHandler.

Sets the DTD content model handler.

Parameters
handler:XMLDTDContentModelHandler

The DTD content model handler.

setDTDHandlerback to summary
public void setDTDHandler(XMLDTDHandler dtdHandler)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setDTDHandler.

Sets the DTD handler.

Parameters
dtdHandler:XMLDTDHandler

The DTD handler.

setEntityResolverback to summary
public void setEntityResolver(XMLEntityResolver resolver)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setEntityResolver.

Sets the resolver used to resolve external entities. The EntityResolver interface supports resolution of public and system identifiers.

Parameters
resolver:XMLEntityResolver

The new entity resolver. Passing a null value will uninstall the currently installed resolver.

setErrorHandlerback to summary
public void setErrorHandler(XMLErrorHandler errorHandler)

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setErrorHandler.

Allow an application to register an error event handler.

If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue. It is highly recommended that all SAX applications implement an error handler to avoid unexpected bugs.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.

Parameters
errorHandler:XMLErrorHandler

The error handler.

Exceptions
NullPointerException:
If the handler argument is null.
See Also
getErrorHandler
setFeatureback to summary
public void setFeature(String featureId, boolean state) throws XMLConfigurationException

Overrides com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings.setFeature.

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setFeature.

Set the state of a feature. Set the state of any feature in a SAX2 parser. The parser might not recognize the feature, and if it does recognize it, it might not be able to fulfill the request.

Parameters
featureId:String

The unique identifier (URI) of the feature.

state:boolean

The requested state of the feature (true or false).

Exceptions
XMLConfigurationException:
If the requested feature is not known.
setInputSourceback to summary
public void setInputSource(XMLInputSource inputSource) throws XMLConfigurationException, IOException

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLPullParserConfiguration.setInputSource.

Sets the input source for the document to parse.

Parameters
inputSource:XMLInputSource

The document's input source.

Exceptions
XMLConfigurationException:
Thrown if there is a configuration error when initializing the parser.
IOException:
Thrown on I/O error.
See Also
parse(boolean)
setLocaleback to summary
public void setLocale(Locale locale) throws XNIException

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setLocale.

Set the locale to use for messages.

Parameters
locale:Locale

The locale object to use for localization of messages.

Exceptions
XNIException:
Thrown if the parser does not support the specified locale.
setPropertyback to summary
public void setProperty(String propertyId, Object value) throws XMLConfigurationException

Overrides com.sun.org.apache.xerces.internal.util.ParserConfigurationSettings.setProperty.

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setProperty.

setProperty

Exceptions
XMLConfigurationException:

Doc from com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration.setProperty.

Thrown if there is a configuration error.