flatgraph.formats.Importer.scala Maven / Gradle / Ivy
package flatgraph.formats
import org.slf4j.LoggerFactory
import flatgraph.Graph
import java.nio.file.{Path, Paths}
trait Importer {
protected val logger = LoggerFactory.getLogger(getClass)
def runImport(graph: Graph, inputFiles: Seq[Path]): Unit
def runImport(graph: Graph, inputFile: Path): Unit =
runImport(graph, Seq(inputFile))
def runImport(graph: Graph, inputFile: String): Unit =
runImport(graph, Paths.get(inputFile))
}