netaddr.eui.ieee.FileIndexer

Package netaddr :: Package eui :: Module ieee :: Class FileIndexer |
[hide private]
[frames] | no frames]

# Class FileIndexer

         object --+
                  |
    core.Subscriber --+
                      |
                     FileIndexer

A concrete Subscriber that receives OUI record offset information that is written to an index data file as a set of comma separated records.

Instance Methods | [hide private]
__init__(self, index_file) Constructor. |
update(self, data) Receives and writes index data to a CSV data file. |
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, index_file) (Constructor) |
Constructor. Parameters: `index_file` - a file-like object or name of index file where index records will be written. Overrides: object.__init__

### update(self, data) |
Receives and writes index data to a CSV data file. Parameters: `data` - record containing offset record information. Overrides: core.Subscriber.update