public class XMLDocumentScannerImpl extends XMLDocumentFragmentScannerImpl
This component requires the following features and properties from the component manager that uses it:
| Modifier and Type | Class and Description | 
|---|---|
| protected class  | XMLDocumentScannerImpl.ContentDispatcherDispatcher to handle content scanning. | 
| protected class  | XMLDocumentScannerImpl.DTDDispatcherDispatcher to handle the internal and external DTD subsets. | 
| protected class  | XMLDocumentScannerImpl.PrologDispatcherDispatcher to handle prolog scanning. | 
| protected class  | XMLDocumentScannerImpl.TrailingMiscDispatcherDispatcher to handle trailing miscellaneous section scanning. | 
| protected class  | XMLDocumentScannerImpl.XMLDeclDispatcherDispatcher to handle XMLDecl scanning. | 
XMLDocumentFragmentScannerImpl.Dispatcher, XMLDocumentFragmentScannerImpl.ElementStack, XMLDocumentFragmentScannerImpl.FragmentContentDispatcher| Modifier and Type | Field and Description | 
|---|---|
| protected static java.lang.String | DISALLOW_DOCTYPE_DECL_FEATUREFeature identifier: load external DTD. | 
| protected static java.lang.String | DTD_SCANNERProperty identifier: DTD scanner. | 
| protected boolean | fDisallowDoctypeDisallow doctype declaration. | 
| protected java.lang.String | fDoctypeNameDoctype name. | 
| protected java.lang.String | fDoctypePublicIdDoctype declaration public identifier. | 
| protected java.lang.String | fDoctypeSystemIdDoctype declaration system identifier. | 
| protected XMLDocumentFragmentScannerImpl.Dispatcher | fDTDDispatcherDTD dispatcher. | 
| protected org.apache.xerces.xni.parser.XMLDTDScanner | fDTDScannerDTD scanner. | 
| protected boolean | fLoadExternalDTDLoad external DTD. | 
| protected org.apache.xerces.xni.NamespaceContext | fNamespaceContextNamespace support. | 
| protected XMLDocumentFragmentScannerImpl.Dispatcher | fPrologDispatcherProlog dispatcher. | 
| protected boolean | fScanningDTDScanning DTD. | 
| protected boolean | fSeenDoctypeDeclSeen doctype declaration. | 
| protected XMLDocumentFragmentScannerImpl.Dispatcher | fTrailingMiscDispatcherTrailing miscellaneous section dispatcher. | 
| protected ValidationManager | fValidationManagerValidation manager . | 
| protected XMLDocumentFragmentScannerImpl.Dispatcher | fXMLDeclDispatcherXML declaration dispatcher. | 
| protected static java.lang.String | LOAD_EXTERNAL_DTDFeature identifier: load external DTD. | 
| protected static java.lang.String | NAMESPACE_CONTEXTproperty identifier:  NamespaceContext | 
| protected static int | SCANNER_STATE_DTD_EXTERNALScanner state: open DTD external subset. | 
| protected static int | SCANNER_STATE_DTD_EXTERNAL_DECLSScanner state: DTD external declarations. | 
| protected static int | SCANNER_STATE_DTD_INTERNAL_DECLSScanner state: DTD internal declarations. | 
| protected static int | SCANNER_STATE_PROLOGScanner state: prolog. | 
| protected static int | SCANNER_STATE_TRAILING_MISCScanner state: trailing misc. | 
| protected static int | SCANNER_STATE_XML_DECLScanner state: XML declaration. | 
| protected static java.lang.String | VALIDATION_MANAGERproperty identifier:  ValidationManager | 
DEBUG_CONTENT_SCANNING, ENTITY_RESOLVER, fAttributeQName, fAttributes, fContentDispatcher, fCurrentElement, fDispatcher, fDocumentHandler, fElementQName, fElementStack, fEntityStack, fExternalSubsetResolver, fHasExternalDTD, fInScanContent, fIsEntityDeclaredVC, fMarkupDepth, fNotifyBuiltInRefs, fScannerState, fStandalone, fTempString, fTempString2, NAMESPACES, NOTIFY_BUILTIN_REFS, SCANNER_STATE_CDATA, SCANNER_STATE_COMMENT, SCANNER_STATE_CONTENT, SCANNER_STATE_DOCTYPE, SCANNER_STATE_END_OF_INPUT, SCANNER_STATE_PI, SCANNER_STATE_REFERENCE, SCANNER_STATE_ROOT_ELEMENT, SCANNER_STATE_START_OF_MARKUP, SCANNER_STATE_TERMINATED, SCANNER_STATE_TEXT_DECLDEBUG_ATTR_NORMALIZATION, ENTITY_MANAGER, ERROR_REPORTER, fAmpSymbol, fAposSymbol, fCharRefLiteral, fEncodingSymbol, fEntityDepth, fEntityManager, fEntityScanner, fErrorReporter, fGtSymbol, fLtSymbol, fNamespaces, fNotifyCharRefs, fParserSettings, fQuotSymbol, fReportEntity, fResourceIdentifier, fScanningAttribute, fStandaloneSymbol, fSymbolTable, fValidation, fVersionSymbol, NOTIFY_CHAR_REFS, PARSER_SETTINGS, SYMBOL_TABLE, VALIDATION| Constructor and Description | 
|---|
| XMLDocumentScannerImpl()Default constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected XMLDocumentFragmentScannerImpl.Dispatcher | createContentDispatcher()Creates a content dispatcher. | 
| void | endEntity(java.lang.String name,
         org.apache.xerces.xni.Augmentations augs)This method notifies the end of an entity. | 
| java.lang.Boolean | getFeatureDefault(java.lang.String featureId)Returns the default state for a feature, or null if this
 component does not want to report a default value for this
 feature. | 
| java.lang.Object | getPropertyDefault(java.lang.String propertyId)Returns the default state for a property, or null if this
 component does not want to report a default value for this
 property. | 
| java.lang.String[] | getRecognizedFeatures()Returns a list of feature identifiers that are recognized by
 this component. | 
| java.lang.String[] | getRecognizedProperties()Returns a list of property identifiers that are recognized by
 this component. | 
| protected java.lang.String | getScannerStateName(int state)Returns the scanner state name. | 
| void | reset(org.apache.xerces.xni.parser.XMLComponentManager componentManager)Resets the component. | 
| protected boolean | scanDoctypeDecl()Scans a doctype declaration. | 
| void | setFeature(java.lang.String featureId,
          boolean state)Sets the state of a feature. | 
| void | setInputSource(org.apache.xerces.xni.parser.XMLInputSource inputSource)Sets the input source. | 
| void | setProperty(java.lang.String propertyId,
           java.lang.Object value)Sets the value of a property. | 
| void | startEntity(java.lang.String name,
           org.apache.xerces.xni.XMLResourceIdentifier identifier,
           java.lang.String encoding,
           org.apache.xerces.xni.Augmentations augs)This method notifies of the start of an entity. | 
getDispatcherName, getDocumentHandler, handleEndElement, scanAttribute, scanCDATASection, scanCharReference, scanComment, scanContent, scanDocument, scanEndElement, scanEntityReference, scanPIData, scanStartElement, scanStartElementAfterName, scanStartElementName, scanXMLDeclOrTextDecl, setDispatcher, setDocumentHandler, setScannerStategetFeature, getVersionNotSupportedKey, isInvalid, isInvalidLiteral, isUnchangedByNormalization, isValidNameChar, isValidNameStartChar, isValidNameStartHighSurrogate, isValidNCName, normalizeWhitespace, normalizeWhitespace, reportFatalError, reset, scanAttributeValue, scanCharReferenceValue, scanComment, scanExternalID, scanPI, scanPseudoAttribute, scanPubidLiteral, scanSurrogates, scanXMLDeclOrTextDecl, versionSupportedprotected static final int SCANNER_STATE_XML_DECL
protected static final int SCANNER_STATE_PROLOG
protected static final int SCANNER_STATE_TRAILING_MISC
protected static final int SCANNER_STATE_DTD_INTERNAL_DECLS
protected static final int SCANNER_STATE_DTD_EXTERNAL
protected static final int SCANNER_STATE_DTD_EXTERNAL_DECLS
protected static final java.lang.String LOAD_EXTERNAL_DTD
protected static final java.lang.String DISALLOW_DOCTYPE_DECL_FEATURE
protected static final java.lang.String DTD_SCANNER
protected static final java.lang.String VALIDATION_MANAGER
protected static final java.lang.String NAMESPACE_CONTEXT
protected org.apache.xerces.xni.parser.XMLDTDScanner fDTDScanner
protected ValidationManager fValidationManager
protected boolean fScanningDTD
protected java.lang.String fDoctypeName
protected java.lang.String fDoctypePublicId
protected java.lang.String fDoctypeSystemId
protected org.apache.xerces.xni.NamespaceContext fNamespaceContext
protected boolean fLoadExternalDTD
protected boolean fDisallowDoctype
protected boolean fSeenDoctypeDecl
protected final XMLDocumentFragmentScannerImpl.Dispatcher fXMLDeclDispatcher
protected final XMLDocumentFragmentScannerImpl.Dispatcher fPrologDispatcher
protected final XMLDocumentFragmentScannerImpl.Dispatcher fDTDDispatcher
protected final XMLDocumentFragmentScannerImpl.Dispatcher fTrailingMiscDispatcher
public void setInputSource(org.apache.xerces.xni.parser.XMLInputSource inputSource)
                    throws java.io.IOException
setInputSource in interface org.apache.xerces.xni.parser.XMLDocumentScannersetInputSource in class XMLDocumentFragmentScannerImplinputSource - The input source.java.io.IOException - Thrown on i/o error.public void reset(org.apache.xerces.xni.parser.XMLComponentManager componentManager)
           throws org.apache.xerces.xni.parser.XMLConfigurationException
reset in interface org.apache.xerces.xni.parser.XMLComponentreset in class XMLDocumentFragmentScannerImplcomponentManager - The component manager.SAXException - Thrown by component on initialization error.
                      For example, if a feature or property is
                      required for the operation of the component, the
                      component manager may throw a
                      SAXNotRecognizedException or a
                      SAXNotSupportedException.org.apache.xerces.xni.parser.XMLConfigurationExceptionpublic java.lang.String[] getRecognizedFeatures()
getRecognizedFeatures in interface org.apache.xerces.xni.parser.XMLComponentgetRecognizedFeatures in class XMLDocumentFragmentScannerImplpublic void setFeature(java.lang.String featureId,
              boolean state)
                throws org.apache.xerces.xni.parser.XMLConfigurationException
Note: Components should silently ignore features that do not affect the operation of the component.
setFeature in interface org.apache.xerces.xni.parser.XMLComponentsetFeature in class XMLDocumentFragmentScannerImplfeatureId - The feature identifier.state - The state of the feature.SAXNotRecognizedException - The component should not throw
                                   this exception.SAXNotSupportedException - The component should not throw
                                  this exception.org.apache.xerces.xni.parser.XMLConfigurationException - Thrown for configuration error.
                                   In general, components should
                                   only throw this exception if
                                   it is really
                                   a critical error.public java.lang.String[] getRecognizedProperties()
getRecognizedProperties in interface org.apache.xerces.xni.parser.XMLComponentgetRecognizedProperties in class XMLDocumentFragmentScannerImplpublic void setProperty(java.lang.String propertyId,
               java.lang.Object value)
                 throws org.apache.xerces.xni.parser.XMLConfigurationException
Note: Components should silently ignore properties that do not affect the operation of the component.
setProperty in interface org.apache.xerces.xni.parser.XMLComponentsetProperty in class XMLDocumentFragmentScannerImplpropertyId - The property identifier.value - The value of the property.SAXNotRecognizedException - The component should not throw
                                   this exception.SAXNotSupportedException - The component should not throw
                                  this exception.org.apache.xerces.xni.parser.XMLConfigurationException - Thrown for configuration error.
                                   In general, components should
                                   only throw this exception if
                                   it is really
                                   a critical error.public java.lang.Boolean getFeatureDefault(java.lang.String featureId)
getFeatureDefault in interface org.apache.xerces.xni.parser.XMLComponentgetFeatureDefault in class XMLDocumentFragmentScannerImplfeatureId - The feature identifier.public java.lang.Object getPropertyDefault(java.lang.String propertyId)
getPropertyDefault in interface org.apache.xerces.xni.parser.XMLComponentgetPropertyDefault in class XMLDocumentFragmentScannerImplpropertyId - The property identifier.public void startEntity(java.lang.String name,
               org.apache.xerces.xni.XMLResourceIdentifier identifier,
               java.lang.String encoding,
               org.apache.xerces.xni.Augmentations augs)
                 throws org.apache.xerces.xni.XNIException
startEntity in interface XMLEntityHandlerstartEntity in class XMLDocumentFragmentScannerImplname - The name of the entity.identifier - The resource identifier.encoding - The auto-detected IANA encoding name of the entity
                 stream. This value will be null in those situations
                 where the entity encoding is not auto-detected (e.g.
                 internal entities or a document entity that is
                 parsed from a java.io.Reader).augs - Additional information that may include infoset augmentationsorg.apache.xerces.xni.XNIException - Thrown by handler to signal an error.public void endEntity(java.lang.String name,
             org.apache.xerces.xni.Augmentations augs)
               throws org.apache.xerces.xni.XNIException
endEntity in interface XMLEntityHandlerendEntity in class XMLDocumentFragmentScannerImplname - The name of the entity.augs - Additional information that may include infoset augmentationsorg.apache.xerces.xni.XNIException - Thrown by handler to signal an error.protected XMLDocumentFragmentScannerImpl.Dispatcher createContentDispatcher()
createContentDispatcher in class XMLDocumentFragmentScannerImplprotected boolean scanDoctypeDecl()
                           throws java.io.IOException,
                                  org.apache.xerces.xni.XNIException
java.io.IOExceptionorg.apache.xerces.xni.XNIExceptionprotected java.lang.String getScannerStateName(int state)
getScannerStateName in class XMLDocumentFragmentScannerImplCopyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.