Gephi Toolkit Javadoc

org.gephi.io.importer.plugin.file
Class ImporterBuilderVNA

java.lang.Object
  extended by org.gephi.io.importer.plugin.file.ImporterBuilderVNA
All Implemented Interfaces:
FileImporterBuilder, ImporterBuilder

public final class ImporterBuilderVNA
extends java.lang.Object
implements FileImporterBuilder

Author:
Vojtech Bardiovsky

Field Summary
static java.lang.String IDENTIFER
           
 
Constructor Summary
ImporterBuilderVNA()
           
 
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.
 java.lang.String getName()
          Returns the name of this builder
 boolean isMatchingImporter(FileObject fileObject)
          Returns true if this importer can import fileObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTIFER

public static final java.lang.String IDENTIFER
See Also:
Constant Field Values
Constructor Detail

ImporterBuilderVNA

public ImporterBuilderVNA()
Method Detail

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

Gephi Toolkit Javadoc