Package org.gephi.io.importer.spi
Interface FileImporterBuilder
-
- All Superinterfaces:
ImporterBuilder
public interface FileImporterBuilder extends ImporterBuilder
Importer builder specific forFileImporter.- Author:
- Mathieu Bastian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FileImporterbuildImporter()Builds a new file importer instance, ready to be used.FileType[]getFileTypes()Get default file types this importer can deal with.booleanisMatchingImporter(org.openide.filesystems.FileObject fileObject)Returnstrueif this importer can importfileObject.-
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:
buildImporterin interfaceImporterBuilder- 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(org.openide.filesystems.FileObject fileObject)
Returnstrueif this importer can importfileObject. 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. ThefileObjectcan be read in that way.- Parameters:
fileObject- the file in input- Returns:
trueif the importer is compatible withfileObjectorfalseotherwise
-
-