|
__init__(self,
fd,
charset=' UTF-8 ' )
Create a new parser for a file containing 'tagged' records |
source code
|
|
|
file_start(self)
Override me to have a function called before the first record is
to be parsed |
source code
|
|
|
file_stop(self)
Override me to be called after the last record has been parsed |
source code
|
|
|
file_stopping(self)
Override me to be called just at the end of file |
source code
|
|
|
line_handler(self,
line,
number)
Override me to handle each line of input and generate self.push ()
events. |
source code
|
|
|
field_handler(self,
tag,
value)
Transforms a single field of a record |
source code
|
|
|
|
|
metadata_add(self,
tag,
value)
Call me to notify the availability of a new meta data |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
unread(self,
line,
count)
Put back a line so that it will be returned by self._pop when it
is next invoked. |
source code
|
|
|
next(self)
Call this function to get the next record as a list of tuples |
source code
|
|
|
_ev_pop(self)
Parse enough lines to get the next event |
source code
|
|
|
_pop(self)
Return a line from the file with its line number. |
source code
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|