org.gephi.io.importer.plugin.file
Class ImporterBuilderGEXF
java.lang.Object
org.gephi.io.importer.plugin.file.ImporterBuilderGEXF
- All Implemented Interfaces:
- FileImporterBuilder, ImporterBuilder
public class ImporterBuilderGEXF
- extends java.lang.Object
- implements FileImporterBuilder
- Author:
- Mathieu Bastian
Field Summary |
static java.lang.String |
IDENTIFER
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IDENTIFER
public static final java.lang.String IDENTIFER
- See Also:
- Constant Field Values
ImporterBuilderGEXF
public ImporterBuilderGEXF()
buildImporter
public FileImporter buildImporter()
- Description copied from interface:
FileImporterBuilder
- Builds a new file importer instance, ready to be used.
- Specified by:
buildImporter
in interface FileImporterBuilder
- Specified by:
buildImporter
in interface ImporterBuilder
- Returns:
- a new file importer
getName
public java.lang.String getName()
- Description copied from interface:
ImporterBuilder
- Returns the name of this builder
- Specified by:
getName
in interface ImporterBuilder
- Returns:
- the name of this importer
getFileTypes
public FileType[] getFileTypes()
- Description copied from interface:
FileImporterBuilder
- Get default file types this importer can deal with.
- Specified by:
getFileTypes
in interface FileImporterBuilder
- Returns:
- an array of file types this importer can read
isMatchingImporter
public boolean isMatchingImporter(FileObject fileObject)
- Description copied from interface:
FileImporterBuilder
- 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.
- Specified by:
isMatchingImporter
in interface FileImporterBuilder
- Parameters:
fileObject
- the file in input
- Returns:
true
if the importer is compatible with fileObject
or false
otherwise