public class ImporterBuilderGraphML extends Object implements FileImporterBuilder
| Constructor and Description |
|---|
ImporterBuilderGraphML() |
| Modifier and Type | Method and Description |
|---|---|
FileImporter |
buildImporter()
Builds a new file importer instance, ready to be used.
|
FileType[] |
getFileTypes()
Get default file types this importer can deal with.
|
String |
getName()
Returns the name of this builder
|
boolean |
isMatchingImporter(org.openide.filesystems.FileObject fileObject)
Returns
true if this importer can import
fileObject. |
public static final String IDENTIFER
public FileImporter buildImporter()
FileImporterBuilderbuildImporter in interface FileImporterBuilderbuildImporter in interface ImporterBuilderpublic String getName()
ImporterBuildergetName in interface ImporterBuilderpublic FileType[] getFileTypes()
FileImporterBuildergetFileTypes in interface FileImporterBuilderpublic boolean isMatchingImporter(org.openide.filesystems.FileObject fileObject)
FileImporterBuildertrue 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.
isMatchingImporter in interface FileImporterBuilderfileObject - the file in inputtrue if the importer is compatible with
fileObject or false otherwiseCopyright © 2007–2017. All rights reserved.