接口 FileSourcedConverter
- 所有已知实现类:
AbstractFileLoader
,AbstractFileSaver
,ArffLoader
,ArffSaver
,C45Loader
,C45Saver
,CSVLoader
,CSVSaver
,LibSVMLoader
,LibSVMSaver
,SerializedInstancesLoader
,SerializedInstancesSaver
,SVMLightLoader
,SVMLightSaver
,XRFFLoader
,XRFFSaver
public interface FileSourcedConverter
Interface to a loader/saver that loads/saves from a file source.
- 版本:
- $Revision: 1.5 $
- 作者:
- Mark Hall
-
方法概要
修饰符和类型方法说明Get a one line description of the type of fileGet the file extension used for this type of fileString[]
Gets all the file extensions used for this type of fileboolean
Gets whether relative paths are to be usedReturn the current source file/ destination filevoid
Set the file to load from/ to save invoid
setUseRelativePath
(boolean rp) Set whether to use relative rather than absolute paths
-
方法详细资料
-
getFileExtension
String getFileExtension()Get the file extension used for this type of file- 返回:
- the file extension
-
getFileExtensions
String[] getFileExtensions()Gets all the file extensions used for this type of file- 返回:
- the file extensions
-
getFileDescription
String getFileDescription()Get a one line description of the type of file- 返回:
- a description of the file type
-
setFile
Set the file to load from/ to save in- 参数:
file
- the file to load from- 抛出:
IOException
- if an error occurs
-
retrieveFile
File retrieveFile()Return the current source file/ destination file- 返回:
- a
File
value
-
setUseRelativePath
void setUseRelativePath(boolean rp) Set whether to use relative rather than absolute paths- 参数:
rp
- true if relative paths are to be used
-
getUseRelativePath
boolean getUseRelativePath()Gets whether relative paths are to be used- 返回:
- true if relative paths are to be used
-