'Parse the file.'

def Parse(self):

    if (not self._file):
        logging.error("Couldn't    open    file")
        return
    self.input_dat = self._file.read(((1024 * 1024) * 5))
    if (not self.input_dat.startswith(self.FILE_HEADER)):
        logging.error('Invalid    index.dat    file    %s', self._file)
        return
    events = []
    for event in self._DoParse():
        events.append(event)
    for event in sorted(events, key=operator.itemgetter('mtime')):
        (yield event)
