org.bs.mdi
Interface FileIOModule

All Known Subinterfaces:
FileExporter, FileLoader, FileSaver

public interface FileIOModule

An interface for modules performing file I/O.


Method Summary
 boolean canHandle(String filename)
          Returns true if the given filename can be used for I/O by this module.
 String getDescription()
          Returns a textual description of this file I/O module.
 FileFormat[] getSupportedFormats()
          Returns a list of file formats which are supported by this module.
 

Method Detail

getSupportedFormats

public FileFormat[] getSupportedFormats()
Returns a list of file formats which are supported by this module.

Returns:
the file format list

canHandle

public boolean canHandle(String filename)
Returns true if the given filename can be used for I/O by this module.

Parameters:
filename - the filename
Returns:
true if this module can perform I/O in this filename, false otherwise

getDescription

public String getDescription()
Returns a textual description of this file I/O module. This can be, for example, "HTML file exporter".

Returns:
the module description