XMLPullParserConfiguration
interface.
In addition to the features and properties recognized by the base parser configuration, this class recognizes these additional features and properties:
Modifier and Type | Field and Description |
---|---|
protected static final String | ALLOW_JAVA_ENCODINGS
Feature identifier: allow Java encodings. |
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 | ERROR_REPORTER
Property identifier: error reporter. |
protected DTDDVFactory | fDatatypeValidatorFactory
Datatype validator factory. |
protected XMLDTDProcessor | fDTDProcessor
DTD Processor . |
protected XMLDTDScanner | fDTDScanner
DTD scanner. |
protected XMLDTDValidator | fDTDValidator
DTD Validator. |
protected XMLEntityManager | fEntityManager
Entity manager. |
protected XMLErrorReporter | fErrorReporter
Error reporter. |
protected XMLGrammarPool | fGrammarPool
Grammar pool. |
protected XMLInputSource | fInputSource
Input Source |
protected XMLLocator | fLocator
Locator |
protected XMLNamespaceBinder | fNamespaceBinder
Namespace binder. |
protected boolean | fParseInProgress
True if a parse is in progress. |
protected XMLDocumentScanner | fScanner
Document scanner. |
protected ValidationManager | |
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 | LOCALE
Property identifier: locale. |
protected static final String | NAMESPACE_BINDER
Property identifier: namespace binder. |
protected static final String | NOTIFY_BUILTIN_REFS
Feature identifier: notify built-in refereces. |
protected static final String | NOTIFY_CHAR_REFS
Feature identifier: notify character refereces. |
protected static final boolean | PRINT_EXCEPTION_STACK_TRACE
Set to true and recompile to print exception stack trace. |
private static final String | SECURITY_MANAGER
Property identifier: Security manager. |
protected static final String | |
protected static final String | WARN_ON_DUPLICATE_ATTDEF
Feature identifier: warn on duplicate attribute definition. |
protected static final String | WARN_ON_DUPLICATE_ENTITYDEF
Feature identifier: warn on duplicate entity definition. |
protected static final String | WARN_ON_UNDECLARED_ELEMDEF
Feature identifier: warn on undeclared element definition. |
protected static final String | XML_SECURITY_PROPERTY_MANAGER
Property identifier: Security property manager. |
protected static final String | XMLGRAMMAR_POOL
Property identifier: grammar pool. |
Access | Constructor and Description |
---|---|
public | |
public | DTDConfiguration(SymbolTable
The symbol table to use. symbolTable)Constructs a parser configuration using the specified symbol table. |
public | DTDConfiguration(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 | DTDConfiguration(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. |
Modifier and Type | Method and Description |
---|---|
protected FeatureState | checkFeature(String
The unique identifier (URI) of the feature. featureId)Overrides com. Check a feature. |
protected PropertyState | checkProperty(String
The unique identifier (URI) of the property
being set. propertyId)Overrides com. Check a property. |
public void | cleanup()
Implements com. 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 | |
protected void | |
protected DTDDVFactory | |
protected XMLDocumentScanner | |
protected XMLDTDProcessor | |
protected XMLDTDScanner | |
protected XMLDTDValidator | |
protected XMLEntityManager | |
protected XMLErrorReporter | |
protected XMLNamespaceBinder | |
protected ValidationManager | |
public PropertyState | |
public boolean | Returns: True if there is more document to parse.True if the pull parser should parse the
remaining document completely. complete)Implements com. Parses the document in a pull parsing fashion. |
public void | parse(XMLInputSource
The input source. source)Implements abstract com. Implements com. Parses the specified input source. |
protected void | reset()
Overrides com. Reset all components before parsing. |
public void | setInputSource(XMLInputSource
The document's input source. inputSource)Implements com. Sets the input source for the document to parse. |
public void | setLocale(Locale
The locale object to use for localization of messages. locale)Overrides com. Implements com. Set the locale to use for messages. |
public void | setProperty(String
The property identifier. propertyId, Object The value of the property. value)Overrides com. Implements com. Sets the value of a property. |
ALLOW_JAVA_ENCODINGS | back to summary |
---|---|
protected static final String ALLOW_JAVA_ENCODINGS Feature identifier: allow Java encodings. |
CONTINUE_AFTER_FATAL_ERROR | back to summary |
---|---|
protected static final String CONTINUE_AFTER_FATAL_ERROR Feature identifier: continue after fatal error. |
DATATYPE_VALIDATOR_FACTORY | back to summary |
---|---|
protected static final String DATATYPE_VALIDATOR_FACTORY Property identifier: datatype validator factory. |
DOCUMENT_SCANNER | back to summary |
---|---|
protected static final String DOCUMENT_SCANNER Property identifier document scanner: |
DTD_PROCESSOR | back to summary |
---|---|
protected static final String DTD_PROCESSOR Property identifier: DTD loader. |
DTD_SCANNER | back to summary |
---|---|
protected static final String DTD_SCANNER Property identifier: DTD scanner. |
DTD_VALIDATOR | back to summary |
---|---|
protected static final String DTD_VALIDATOR Property identifier: DTD validator. |
ENTITY_MANAGER | back to summary |
---|---|
protected static final String ENTITY_MANAGER Property identifier: entity manager. |
ERROR_REPORTER | back to summary |
---|---|
protected static final String ERROR_REPORTER Property identifier: error reporter. |
fDatatypeValidatorFactory | back to summary |
---|---|
protected DTDDVFactory fDatatypeValidatorFactory Datatype validator factory. |
fDTDProcessor | back to summary |
---|---|
protected XMLDTDProcessor fDTDProcessor DTD Processor . |
fDTDScanner | back to summary |
---|---|
protected XMLDTDScanner fDTDScanner DTD scanner. |
fDTDValidator | back to summary |
---|---|
protected XMLDTDValidator fDTDValidator DTD Validator. |
fEntityManager | back to summary |
---|---|
protected XMLEntityManager fEntityManager Entity manager. |
fErrorReporter | back to summary |
---|---|
protected XMLErrorReporter fErrorReporter Error reporter. |
fGrammarPool | back to summary |
---|---|
protected XMLGrammarPool fGrammarPool Grammar pool. |
fInputSource | back to summary |
---|---|
protected XMLInputSource fInputSource Input Source |
fLocator | back to summary |
---|---|
protected XMLLocator fLocator Locator |
fNamespaceBinder | back to summary |
---|---|
protected XMLNamespaceBinder fNamespaceBinder Namespace binder. |
fParseInProgress | back 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). |
fScanner | back to summary |
---|---|
protected XMLDocumentScanner fScanner Document scanner. |
fValidationManager | back to summary |
---|---|
protected ValidationManager fValidationManager |
JAXP_SCHEMA_LANGUAGE | back to summary |
---|---|
protected static final String JAXP_SCHEMA_LANGUAGE Property identifier: JAXP schema language / DOM schema-type. |
JAXP_SCHEMA_SOURCE | back to summary |
---|---|
protected static final String JAXP_SCHEMA_SOURCE Property identifier: JAXP schema source/ DOM schema-location. |
LOAD_EXTERNAL_DTD | back to summary |
---|---|
protected static final String LOAD_EXTERNAL_DTD Feature identifier: load external DTD. |
LOCALE | back to summary |
---|---|
protected static final String LOCALE Property identifier: locale. |
NAMESPACE_BINDER | back to summary |
---|---|
protected static final String NAMESPACE_BINDER Property identifier: namespace binder. |
NOTIFY_BUILTIN_REFS | back to summary |
---|---|
protected static final String NOTIFY_BUILTIN_REFS Feature identifier: notify built-in refereces. |
NOTIFY_CHAR_REFS | back to summary |
---|---|
protected static final String NOTIFY_CHAR_REFS Feature identifier: notify character refereces. |
PRINT_EXCEPTION_STACK_TRACE | back to summary |
---|---|
protected static final boolean PRINT_EXCEPTION_STACK_TRACE Set to true and recompile to print exception stack trace. |
SECURITY_MANAGER | back to summary |
---|---|
private static final String SECURITY_MANAGER Property identifier: Security manager. |
VALIDATION_MANAGER | back to summary |
---|---|
protected static final String VALIDATION_MANAGER |
WARN_ON_DUPLICATE_ATTDEF | back to summary |
---|---|
protected static final String WARN_ON_DUPLICATE_ATTDEF Feature identifier: warn on duplicate attribute definition. |
WARN_ON_DUPLICATE_ENTITYDEF | back to summary |
---|---|
protected static final String WARN_ON_DUPLICATE_ENTITYDEF Feature identifier: warn on duplicate entity definition. |
WARN_ON_UNDECLARED_ELEMDEF | back to summary |
---|---|
protected static final String WARN_ON_UNDECLARED_ELEMDEF Feature identifier: warn on undeclared element definition. |
XML_SECURITY_PROPERTY_MANAGER | back to summary |
---|---|
protected static final String XML_SECURITY_PROPERTY_MANAGER Property identifier: Security property manager. |
XMLGRAMMAR_POOL | back to summary |
---|---|
protected static final String XMLGRAMMAR_POOL Property identifier: grammar pool. |
DTDConfiguration | back to summary |
---|---|
public DTDConfiguration() Default constructor. |
DTDConfiguration | back to summary |
---|---|
public DTDConfiguration(SymbolTable symbolTable) Constructs a parser configuration using the specified symbol table.
|
DTDConfiguration | back to summary |
---|---|
public DTDConfiguration(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.
|
DTDConfiguration | back to summary |
---|---|
public DTDConfiguration(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.
|
checkFeature | back to summary |
---|---|
protected FeatureState checkFeature(String featureId) throws XMLConfigurationException Overrides com. Check a feature. If feature is know and supported, this method simply returns. Otherwise, the appropriate exception is thrown.
|
checkProperty | back to summary |
---|---|
protected PropertyState checkProperty(String propertyId) throws XMLConfigurationException Overrides com. Check a property. If the property is know and supported, this method simply returns. Otherwise, the appropriate exception is thrown.
|
cleanup | back to summary |
---|---|
public void cleanup() Implements com. 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. |
configureDTDPipeline | back to summary |
---|---|
protected void configureDTDPipeline() |
configurePipeline | back to summary |
---|---|
protected void configurePipeline() Configures the pipeline. |
createDatatypeValidatorFactory | back to summary |
---|---|
protected DTDDVFactory createDatatypeValidatorFactory() Create a datatype validator factory. |
createDocumentScanner | back to summary |
---|---|
protected XMLDocumentScanner createDocumentScanner() Create a document scanner. |
createDTDProcessor | back to summary |
---|---|
protected XMLDTDProcessor createDTDProcessor() Create a DTD loader . |
createDTDScanner | back to summary |
---|---|
protected XMLDTDScanner createDTDScanner() Create a DTD scanner. |
createDTDValidator | back to summary |
---|---|
protected XMLDTDValidator createDTDValidator() Create a DTD validator. |
createEntityManager | back to summary |
---|---|
protected XMLEntityManager createEntityManager() Creates an entity manager. |
createErrorReporter | back to summary |
---|---|
protected XMLErrorReporter createErrorReporter() Creates an error reporter. |
createNamespaceBinder | back to summary |
---|---|
protected XMLNamespaceBinder createNamespaceBinder() Create a namespace binder. |
createValidationManager | back to summary |
---|---|
protected ValidationManager createValidationManager() |
getPropertyState | back to summary |
---|---|
public PropertyState getPropertyState(String propertyId) throws XMLConfigurationException Overrides com. Implements com. |
parse | back to summary |
---|---|
public boolean parse(boolean complete) throws XNIException, IOException Implements com. Parses the document in a pull parsing fashion.
|
parse | back to summary |
---|---|
public void parse(XMLInputSource source) throws XNIException, IOException Implements abstract com. Implements com. Parses the specified input source.
|
reset | back to summary |
---|---|
protected void reset() throws XNIException Overrides com. Reset all components before parsing.
|
setInputSource | back to summary |
---|---|
public void setInputSource(XMLInputSource inputSource) throws XMLConfigurationException, IOException Implements com. Sets the input source for the document to parse.
|
setLocale | back to summary |
---|---|
public void setLocale(Locale locale) throws XNIException Overrides com. Implements com. Set the locale to use for messages.
|
setProperty | back to summary |
---|---|
public void setProperty(String propertyId, Object value) throws XMLConfigurationException Overrides com. Implements com. Doc from com. Sets the value of a property. This method is called by the parser and gets propagated to components in this parser configuration.
|