Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « xml.sax » Python 3.11.3

Classe « InputSource »

Informations générales

Héritage

builtins.object
    InputSource

Définition

class InputSource(builtins.object):

help(InputSource)

Encapsulation of the information needed by the XMLReader to
    read entities.

    This class may include information about the public identifier,
    system identifier, byte stream (possibly with character encoding
    information) and/or the character stream of an entity.

    Applications will create objects of this class for use in the
    XMLReader.parse method and for returning from
    EntityResolver.resolveEntity.

    An InputSource belongs to the application, the XMLReader is not
    allowed to modify InputSource objects passed to it from the
    application, although it may make copies and modify those.

Constructeur(s)

Signature du constructeur Description
__init__(self, system_id=None)

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
getByteStream(self) Get the byte stream for this input source. [extrait de getByteStream.__doc__]
getCharacterStream(self) Get the character stream for this input source. [extrait de getCharacterStream.__doc__]
getEncoding(self) Get the character encoding of this InputSource. [extrait de getEncoding.__doc__]
getPublicId(self) Returns the public identifier of this InputSource. [extrait de getPublicId.__doc__]
getSystemId(self) Returns the system identifier of this InputSource. [extrait de getSystemId.__doc__]
setByteStream(self, bytefile) Set the byte stream (a Python file-like object which does [extrait de setByteStream.__doc__]
setCharacterStream(self, charfile) Set the character stream for this input source. (The stream [extrait de setCharacterStream.__doc__]
setEncoding(self, encoding) Sets the character encoding of this InputSource. [extrait de setEncoding.__doc__]
setPublicId(self, public_id) Sets the public identifier of this InputSource. [extrait de setPublicId.__doc__]
setSystemId(self, system_id) Sets the system identifier of this InputSource. [extrait de setSystemId.__doc__]

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __getstate__, __hash__, __init_subclass__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__