1 package org.simantics.fileimport;
\r
3 import java.nio.file.Path;
\r
4 import java.util.Map;
\r
5 import java.util.Optional;
\r
8 * @author Jani Simomaa
\r
11 public interface IGenericFileImport {
\r
14 * Performs the import procedure for the given file
\r
19 Optional<String> perform(Path file) throws Exception;
\r
24 void remove(String resource) throws Exception;
\r
27 * Returns a key-value map for file extensions this importer can handle
\r
31 Map<String, String> allowedExtensionsWithFilters();
\r