Gephi Toolkit Javadoc

org.gephi.io.importer.spi
Interface FileImporterBuilder

All Superinterfaces:
ImporterBuilder
All Known Implementing Classes:
ImporterBuilderCSV, ImporterBuilderDL, ImporterBuilderDOT, ImporterBuilderGDF, ImporterBuilderGEXF, ImporterBuilderGML, ImporterBuilderGraphML, ImporterBuilderPajek, ImporterBuilderTLP, ImporterBuilderVNA

public interface FileImporterBuilder
extends ImporterBuilder

Importer builder specific for FileImporter.

Author:
Mathieu Bastian

Method Summary
 FileImporter buildImporter()
          Builds a new file importer instance, ready to be used.
 FileType[] getFileTypes()
          Get default file types this importer can deal with.
 boolean isMatchingImporter(FileObject fileObject)
          Returns true if this importer can import fileObject.
 
Methods inherited from interface org.gephi.io.importer.spi.ImporterBuilder
getName
 

Method Detail

buildImporter

FileImporter buildImporter()
Builds a new file importer instance, ready to be used.

Specified by:
buildImporter in interface ImporterBuilder
Returns:
a new file importer

getFileTypes

FileType[] getFileTypes()
Get default file types this importer can deal with.

Returns:
an array of file types this importer can read

isMatchingImporter

boolean isMatchingImporter(FileObject fileObject)
Returns true if this importer can import fileObject. Called from controllers to identify dynamically which importers can be used for a particular file format.

Use FileObject.getExt() to retrieve file extension. Matching can be done not only with metadata but also with file content. The fileObject can be read in that way.

Parameters:
fileObject - the file in input
Returns:
true if the importer is compatible with fileObject or false otherwise

Gephi Toolkit Javadoc