Package Pyblio :: Package Parsers :: Package Syntax :: Module RIS :: Class RISParser
[show private | hide private]
[frames | no frames]

Type RISParser

object --+    
         |    
    Parser --+
             |
            RISParser


This parser knows how to split RIS records in fields
Method Summary
  line_handler(self, line, count)
    Inherited from Parser
  __init__(self, fd, charset)
Create a new parser for a file containing 'tagged' records
  field_data(self, data)
  field_end(self)
  field_handler(self, tag, value)
Transforms a single field of a record
  field_start(self, tag, line)
  file_start(self)
Override me to have a function called before the first record is to be parsed
  file_stop(self)
Override me to be called after the last record has been parsed
  file_stopping(self)
Override me to be called just at the end of file
  metadata_add(self, tag, value)
Call me to notify the availability of a new meta data
  next(self)
Call this function to get the next record as a list of tuples
  push(self, *ev)
Emit a new event.
  record_end(self)
  record_start(self)
  unread(self, line, count)
Put back a line so that it will be returned by self._pop when it is next invoked.
  _ev_pop(self)
Parse enough lines to get the next event
  _pop(self)
Return a line from the file with its line number.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
    Inherited from Parser
int EV_DONE = 6                                                                     
int EV_FIELD_DATA = 3                                                                     
int EV_FIELD_END = 4                                                                     
int EV_FIELD_START = 2                                                                     
int EV_FILE_END = 5                                                                     
int EV_METADATA = 7                                                                     
int EV_RECORD_END = 1                                                                     
int EV_RECORD_START = 0                                                                     
int ST_IN_FIELD = 1                                                                     
int ST_IN_RECORD = 0                                                                     
int ST_OUTSIDE = 2                                                                     

Generated by Epydoc 2.1 on Wed Feb 15 23:19:38 2006 http://epydoc.sf.net