class DelimiterSeparatedImporterPlugin(FileImporterPlugin): """DelimiterSeparatedImporter: Provide the possibility to import messages from any binary or ascii file.""" __plugin_name__ = "DelimiterSeparatedImporter" __plugin_version__ = "1.0" __plugin_description__ = _("Provide the possibility to import messages from any binary or ascii file.") __plugin_author__ = "Georges Bossert <*****@*****.**>" __plugin_copyright__ = "Georges Bossert and Frédéric Guihéry" __plugin_license__ = "GPLv3+" PLUGIN_PRIORITY = 0 FILE_TYPE_DESCRIPTION = "Delimiter Separated File" def __init__(self, netzob): super(DelimiterSeparatedImporterPlugin, self).__init__(netzob) self.entryPoints = [] def getEntryPoints(self): return self.entryPoints def canHandleFile(self, filePath): return True def getFileTypeDescription(self): return self.FILE_TYPE_DESCRIPTION def importFile(self, filePathList): self.controller = DelimiterSeparatedImporterController(self.getNetzob(), self) self.controller.setSourceFiles(filePathList) self.controller.run()
def importFile(self, filePathList): self.controller = DelimiterSeparatedImporterController(self.getNetzob(), self) self.controller.setSourceFiles(filePathList) self.controller.run()