PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` netaddr.ip.iana.LineRecordParser
Package netaddr :: Package ip :: Module iana :: Class LineRecordParser
[hide private]
[frames] | no frames]

Class LineRecordParser

    object --+    
             |    
core.Publisher --+
                 |
                LineRecordParser
Known Subclasses:

A configurable Parser that understands how to parse line based records.

Instance Methods [hide private]
 
__init__(self, fh, **kwargs)
Constructor.
 
parse_line(self, line)
This is the callback method invoked for every line considered valid by the line parser's settings.
 
parse(self)
Parse and normalises records, notifying registered subscribers with record data as it is encountered.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

    Inherited from core.Publisher
 
attach(self, subscriber)
Add a new subscriber.
 
detach(self, subscriber)
Remove an existing subscriber.
 
notify(self, data)
Send update data to to all registered Subscribers.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, fh, **kwargs)
(Constructor)

 

Constructor.

fh - a valid, open file handle to line based record data.

Overrides: object.__init__

parse_line(self, line)

 

This is the callback method invoked for every line considered valid by the line parser's settings. It is usually over-ridden by base classes to provide specific line parsing and line skipping logic.

Any line can be vetoed (not passed to registered Subscriber objects) by simply returning None.