Class XMLDocumentScannerImpl

  • All Implemented Interfaces:
    XMLEntityHandler, XMLComponent, XMLDocumentScanner, XMLDocumentSource
    Direct Known Subclasses:
    XML11DocumentScannerImpl, XMLNSDocumentScannerImpl

    public class XMLDocumentScannerImpl
    extends XMLDocumentFragmentScannerImpl
    This class is responsible for scanning XML document structure and content. The scanner acts as the source for the document information which is communicated to the document handler.

    This component requires the following features and properties from the component manager that uses it:

    • http://xml.org/sax/features/namespaces
    • http://xml.org/sax/features/validation
    • http://apache.org/xml/features/nonvalidating/load-external-dtd
    • http://apache.org/xml/features/scanner/notify-char-refs
    • http://apache.org/xml/features/scanner/notify-builtin-refs
    • http://apache.org/xml/properties/internal/symbol-table
    • http://apache.org/xml/properties/internal/error-reporter
    • http://apache.org/xml/properties/internal/entity-manager
    • http://apache.org/xml/properties/internal/dtd-scanner
    Version:
    $Id$
    Author:
    Glenn Marcy, IBM, Andy Clark, IBM, Arnaud Le Hors, IBM, Eric Ye, IBM
    • Field Detail

      • SCANNER_STATE_XML_DECL

        protected static final int SCANNER_STATE_XML_DECL
        Scanner state: XML declaration.
        See Also:
        Constant Field Values
      • SCANNER_STATE_PROLOG

        protected static final int SCANNER_STATE_PROLOG
        Scanner state: prolog.
        See Also:
        Constant Field Values
      • SCANNER_STATE_TRAILING_MISC

        protected static final int SCANNER_STATE_TRAILING_MISC
        Scanner state: trailing misc.
        See Also:
        Constant Field Values
      • SCANNER_STATE_DTD_INTERNAL_DECLS

        protected static final int SCANNER_STATE_DTD_INTERNAL_DECLS
        Scanner state: DTD internal declarations.
        See Also:
        Constant Field Values
      • SCANNER_STATE_DTD_EXTERNAL

        protected static final int SCANNER_STATE_DTD_EXTERNAL
        Scanner state: open DTD external subset.
        See Also:
        Constant Field Values
      • SCANNER_STATE_DTD_EXTERNAL_DECLS

        protected static final int SCANNER_STATE_DTD_EXTERNAL_DECLS
        Scanner state: DTD external declarations.
        See Also:
        Constant Field Values
      • LOAD_EXTERNAL_DTD

        protected static final String LOAD_EXTERNAL_DTD
        Feature identifier: load external DTD.
        See Also:
        Constant Field Values
      • DISALLOW_DOCTYPE_DECL_FEATURE

        protected static final String DISALLOW_DOCTYPE_DECL_FEATURE
        Feature identifier: load external DTD.
        See Also:
        Constant Field Values
      • VALIDATION_MANAGER

        protected static final String VALIDATION_MANAGER
        property identifier: ValidationManager
        See Also:
        Constant Field Values
      • NAMESPACE_CONTEXT

        protected static final String NAMESPACE_CONTEXT
        property identifier: NamespaceContext
        See Also:
        Constant Field Values
      • fValidationManager

        protected ValidationManager fValidationManager
        Validation manager .
      • fScanningDTD

        protected boolean fScanningDTD
        Scanning DTD.
      • fDoctypeName

        protected String fDoctypeName
        Doctype name.
      • fDoctypePublicId

        protected String fDoctypePublicId
        Doctype declaration public identifier.
      • fDoctypeSystemId

        protected String fDoctypeSystemId
        Doctype declaration system identifier.
      • fNamespaceContext

        protected NamespaceContext fNamespaceContext
        Namespace support.
      • fLoadExternalDTD

        protected boolean fLoadExternalDTD
        Load external DTD.
      • fDisallowDoctype

        protected boolean fDisallowDoctype
        Disallow doctype declaration.
      • fSeenDoctypeDecl

        protected boolean fSeenDoctypeDecl
        Seen doctype declaration.
    • Constructor Detail

      • XMLDocumentScannerImpl

        public XMLDocumentScannerImpl()
        Default constructor.