weka.core.converters
Interface FileSourcedConverter

All Known Implementing Classes:
AbstractFileSaver, ArffLoader, C45Loader, CSVLoader, CSVSaver, SerializedInstancesLoader

public interface FileSourcedConverter

Interface to a loader/saver that loads/saves from a file source.

Version:
$Revision: 1.2 $
Author:
Mark Hall

Method Summary
 java.lang.String getFileDescription()
          Get a one line description of the type of file
 java.lang.String getFileExtension()
          Get the file extension used for this type of file
 java.io.File retrieveFile()
          Return the current source file/ destination file
 void setFile(java.io.File file)
          Set the file to load from/ to save in
 

Method Detail

getFileExtension

public java.lang.String getFileExtension()
Get the file extension used for this type of file

Returns:
the file extension

getFileDescription

public java.lang.String getFileDescription()
Get a one line description of the type of file

Returns:
a description of the file type

setFile

public void setFile(java.io.File file)
             throws java.io.IOException
Set the file to load from/ to save in

Parameters:
file - the file to load from
Throws:
java.io.IOException - if an error occurs

retrieveFile

public java.io.File retrieveFile()
Return the current source file/ destination file

Returns:
a File value