Package genshi :: Package filters :: Module transform :: Class StreamBuffer |

# Class StreamBuffer

     object --+
              |
    core.Stream --+
                  |
                 StreamBuffer

Stream event buffer used for cut and copy transformations.

Instance Methods
__init__(self) Create the buffer. |
append(self, event) Add an event to the buffer. |
reset(self) Empty the buffer of events. |
Inherited from `core.Stream`: `__html__`, `__iter__`, `__or__`, `__str__`, `__unicode__`, `filter`, `render`, `select`, `serialize` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`

Class Variables
Inherited from `core.Stream`: `COMMENT`, `DOCTYPE`, `END`, `END_CDATA`, `END_NS`, `PI`, `START`, `START_CDATA`, `START_NS`, `TEXT`, `XML_DECL`

Instance Variables
Inherited from `core.Stream`: `events`, `serializer`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self) (Constructor) |
Create the buffer. Parameters: `events` - a sequence or iterable providing the events `serializer` - the default serialization method to use for this stream Overrides: object.__init__

### append(self, event) |
Add an event to the buffer. Parameters: `event` - the markup event to add