Package pyxmpp :: Module xmlextra :: Class StreamReader
[show private | hide private]
[frames | no frames]

Class StreamReader


A simple push-parser interface for XML streams.

Method Summary
  __init__(self, handler)
Initialize `StreamReader` object.
  doc(self)
Get the document being parsed.
  feed(self, s)
Pass a string to the stream parser.

Method Details

__init__(self, handler)
(Constructor)

Initialize `StreamReader` object.

:Parameters:
    - `handler`: handler object for the stream content
:Types:
    - `handler`: `StreamHandler` derived class

doc(self)

Get the document being parsed.

:return: the document.
:returntype: `libxml2.xmlNode`

feed(self, s)

Pass a string to the stream parser.

Parameters:
    - `s`: string to parse.
Types:
    - `s`: `str`

:return: `None` on EOF, `False` when whole input was parsed and `True`
    if there is something still left in the buffer.

Generated by Epydoc 2.1 on Wed May 31 22:37:01 2006 http://epydoc.sf.net