package org.simantics.fileimport; import java.nio.file.Path; import java.util.Map; import java.util.Optional; /** * @author Jani Simomaa * */ public interface IGenericFileImport { /** * Performs the import procedure for the given file * * @param file * file to import */ Optional perform(Path file) throws Exception; /** * @param resource */ void remove(String resource) throws Exception; /** * Returns a key-value map for file extensions this importer can handle * * @return */ Map allowedExtensionsWithFilters(); }