Module esistools :: Class ESISReader
[hide private]
[frames] | no frames]

_ClassType ESISReader

xml.sax.xmlreader.XMLReader --+
                              |
                             ESISReader

SAX Reader which reads from an ESIS stream.

No verification of the document structure is performed by the reader; a general verifier could be used as the target ContentHandler instance.

Instance Methods [hide private]
 
__init__(self, contentHandler=None, errorHandler=None)
 
get_empties(self)
 
parse(self, source)
Parse an XML document from a system identifier or an InputSource.
 
feed(self, data)
 
close(self)
 
_get_token(self, fp)
 
_handle_token(self, token, data)
 
setContentHandler(self, handler)
Registers a new object to receive document content events.
 
getProperty(self, property)
Looks up and returns the value of a SAX2 property.
 
setProperty(self, property, value)
Sets the value of a SAX2 property.
 
getFeature(self, feature)
Looks up and returns the state of a SAX2 feature.
 
setFeature(self, feature, enabled)
Sets the state of a SAX2 feature.

Inherited from xml.sax.xmlreader.XMLReader: getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, setDTDHandler, setEntityResolver, setErrorHandler, setLocale

Class Variables [hide private]
  _decl_handler = None
  _lexical_handler = None
  _public_id = None
  _system_id = None
  _buffer = ''
  _is_empty = 0
  _lineno = 0
  _started = 0
Method Details [hide private]

__init__(self, contentHandler=None, errorHandler=None)
(Constructor)

 
Overrides: xml.sax.xmlreader.XMLReader.__init__

parse(self, source)

 

Parse an XML document from a system identifier or an InputSource.

Overrides: xml.sax.xmlreader.XMLReader.parse
(inherited documentation)

setContentHandler(self, handler)

 

Registers a new object to receive document content events.

Overrides: xml.sax.xmlreader.XMLReader.setContentHandler
(inherited documentation)

getProperty(self, property)

 

Looks up and returns the value of a SAX2 property.

Overrides: xml.sax.xmlreader.XMLReader.getProperty
(inherited documentation)

setProperty(self, property, value)

 

Sets the value of a SAX2 property.

Overrides: xml.sax.xmlreader.XMLReader.setProperty
(inherited documentation)

getFeature(self, feature)

 

Looks up and returns the state of a SAX2 feature.

Overrides: xml.sax.xmlreader.XMLReader.getFeature
(inherited documentation)

setFeature(self, feature, enabled)

 

Sets the state of a SAX2 feature.

Overrides: xml.sax.xmlreader.XMLReader.setFeature
(inherited documentation)