Class AArffLoader

  • All Implemented Interfaces:
    Serializable, weka.core.converters.BatchConverter, weka.core.converters.FileSourcedConverter, weka.core.converters.IncrementalConverter, weka.core.converters.Loader, weka.core.converters.URLSourcedLoader, weka.core.EnvironmentHandler, weka.core.RevisionHandler

    public class AArffLoader
    extends weka.core.converters.ArffLoader
    Safe version of the ArffLoader, always retaining string values.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AArffLoader.AArffReader  
      • Nested classes/interfaces inherited from class weka.core.converters.ArffLoader

        weka.core.converters.ArffLoader.ArffReader
      • Nested classes/interfaces inherited from interface weka.core.converters.Loader

        weka.core.converters.Loader.StructureNotReadyException
    • Field Summary

      • Fields inherited from class weka.core.converters.ArffLoader

        FILE_EXTENSION, FILE_EXTENSION_COMPRESSED, m_ArffReader, m_retainStringVals, m_sourceReader, m_URL
      • Fields inherited from class weka.core.converters.AbstractFileLoader

        m_env, m_File, m_sourceFile, m_structure, m_useRelativePath
      • Fields inherited from class weka.core.converters.AbstractLoader

        m_retrieval
      • Fields inherited from interface weka.core.converters.Loader

        BATCH, INCREMENTAL, NONE
    • Constructor Summary

      Constructors 
      Constructor Description
      AArffLoader()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getFileDescription()
      Returns a description of the file type.
      weka.core.Instances getStructure()
      Determines and returns (if possible) the structure (internally the header) of the data set as an empty set of instances.
      • Methods inherited from class weka.core.converters.ArffLoader

        getDataSet, getFileExtension, getFileExtensions, getNextInstance, getRetainStringVals, getRevision, globalInfo, main, reset, retainStringValsTipText, retrieveFile, retrieveURL, setFile, setRetainStringVals, setSource, setSource, setURL
      • Methods inherited from class weka.core.converters.AbstractFileLoader

        getUseRelativePath, makeOptionStr, runFileLoader, setEnvironment, setSource, setUseRelativePath, useRelativePathTipText
      • Methods inherited from class weka.core.converters.AbstractLoader

        getRetrieval, setRetrieval
    • Constructor Detail

      • AArffLoader

        public AArffLoader()
    • Method Detail

      • getStructure

        public weka.core.Instances getStructure()
                                         throws IOException
        Determines and returns (if possible) the structure (internally the header) of the data set as an empty set of instances.
        Specified by:
        getStructure in interface weka.core.converters.Loader
        Overrides:
        getStructure in class weka.core.converters.ArffLoader
        Returns:
        the structure of the data set as an empty set of Instances
        Throws:
        IOException - if an error occurs
      • getFileDescription

        public String getFileDescription()
        Returns a description of the file type.
        Specified by:
        getFileDescription in interface weka.core.converters.FileSourcedConverter
        Overrides:
        getFileDescription in class weka.core.converters.ArffLoader
        Returns:
        a short file description