类 AbstractFileLoader

java.lang.Object
weka.core.converters.AbstractLoader
weka.core.converters.AbstractFileLoader
所有已实现的接口:
Serializable, FileSourcedConverter, Loader, EnvironmentHandler, RevisionHandler
直接已知子类:
ArffLoader, C45Loader, CSVLoader, LibSVMLoader, SerializedInstancesLoader, SVMLightLoader, XRFFLoader

public abstract class AbstractFileLoader extends AbstractLoader implements FileSourcedConverter, EnvironmentHandler
Abstract superclass for all file loaders.
版本:
$Revision: 7391 $
作者:
fracpete (fracpete at waikato dot ac dot nz)
另请参阅:
  • 字段详细资料

    • FILE_EXTENSION_COMPRESSED

      public static String FILE_EXTENSION_COMPRESSED
      the extension for compressed files
  • 构造器详细资料

    • AbstractFileLoader

      public AbstractFileLoader()
  • 方法详细资料

    • retrieveFile

      public File retrieveFile()
      get the File specified as the source
      指定者:
      retrieveFile 在接口中 FileSourcedConverter
      返回:
      the source file
    • setFile

      public void setFile(File file) throws IOException
      sets the source File
      指定者:
      setFile 在接口中 FileSourcedConverter
      参数:
      file - the source file
      抛出:
      IOException - if an error occurs
    • setEnvironment

      public void setEnvironment(Environment env)
      Set the environment variables to use.
      指定者:
      setEnvironment 在接口中 EnvironmentHandler
      参数:
      env - the environment variables to use
    • reset

      public void reset() throws IOException
      Resets the loader ready to read a new data set
      指定者:
      reset 在接口中 Loader
      覆盖:
      reset 在类中 AbstractLoader
      抛出:
      IOException - if something goes wrong
    • setSource

      public void setSource(File file) throws IOException
      Resets the Loader object and sets the source of the data set to be the supplied File object.
      指定者:
      setSource 在接口中 Loader
      覆盖:
      setSource 在类中 AbstractLoader
      参数:
      file - the source file.
      抛出:
      IOException - if an error occurs
    • useRelativePathTipText

      public String useRelativePathTipText()
      Tip text suitable for displaying int the GUI
      返回:
      a description of this property as a String
    • setUseRelativePath

      public void setUseRelativePath(boolean rp)
      Set whether to use relative rather than absolute paths
      指定者:
      setUseRelativePath 在接口中 FileSourcedConverter
      参数:
      rp - true if relative paths are to be used
    • getUseRelativePath

      public boolean getUseRelativePath()
      Gets whether relative paths are to be used
      指定者:
      getUseRelativePath 在接口中 FileSourcedConverter
      返回:
      true if relative paths are to be used
    • runFileLoader

      public static void runFileLoader(AbstractFileLoader loader, String[] options)
      runs the given loader with the provided options
      参数:
      loader - the loader to run
      options - the commandline options, first argument must be the file to load