python (3.11.7)
    e1                         d Z ddlmZ ddlmZmZ  G d d          Z G d de          Z G d d	          Z G d
 d          Z	 G d d
          Z
 G d de
          Zd Ze
dk    r e             dS dS )z]An XML Reader is the SAX 2 name for an XML parser. XML Parsers
should be based on this code.    )handler)SAXNotSupportedExceptionSAXNotRecognizedExceptionc                   l    e Zd ZdZd Zd Zd Zd Zd Zd Z	d Z
d	 Zd
 Zd Z
d Zd
 Zd Zd Zd ZdS )	XMLReadera%  Interface for reading an XML document using callbacks.
    XMLReader is the interface that an XML parser's SAX2 driver must
    implement. This interface allows an application to set and query
    features and properties in the parser, to register event handlers
    for document processing, and to initiate a document parse.
    All SAX interfaces are assumed to be synchronous: the parse
    methods must not return until parsing is complete, and readers
    must wait for an event-handler callback to return before reporting
    the next event.c                     t          j                    | _        t          j                    | _        t          j                    | _        t          j                    | _        d S N)	r   ContentHandler
_cont_handler
DTDHandler_dtd_handlerEntityResolver_ent_handlerErrorHandler_err_handlerselfs    E/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/xml/sax/xmlreader.py__init__zXMLReader.__init__   sL    $355#.00#244#022    c                      t          d          )zAParse an XML document from a system identifier or an InputSource. This method must be implemented!NotImplementedErrorr   sources     r   parsezXMLReader.parse   s    !"DEEEr   c                     | j         S )z#Returns the current ContentHandler.r   r   s    r   getContentHandlerzXMLReader.getContentHandler"