Table of Contents

Class: _Scanner Bio/CDD/__init__.py

Start up Martel to do the scanning of the file.

This initialzes the Martel based parser and connects it to a handler that will generate events for a Feature Consumer.

Methods   
__init__
feed
  __init__ 
__init__ ( self,  debug_level=0 )

Initialize the scanner by setting up our caches.

Creating the parser takes a long time, so we want to cache it to reduce parsing time.

Arguments: o debug - The level of debugging that the parser should display. Level 0 is no debugging, Level 2 displays the most debugging info (but is much slower). See Martel documentation for more info on this.

  feed 
feed (
        self,
        handle,
        consumer,
        )

Feeed a set of data into the scanner.

Arguments: o handle - A handle with the information to parse. o consumer - The consumer that should be informed of events.


Table of Contents

This document was automatically generated on Mon Jul 1 12:03:19 2002 by HappyDoc version 2.0.1