Class WekaFileChooser

    • Constructor Detail

      • WekaFileChooser

        public WekaFileChooser()
        Constructs a FileChooser pointing to the user's default directory.
      • WekaFileChooser

        public WekaFileChooser​(File currentDirectory)
        Constructs a FileChooser using the given File as the path.
        Parameters:
        currentDirectory - the path to start in
      • WekaFileChooser

        public WekaFileChooser​(String currentDirectory)
        Constructs a FileChooser using the given path.
        Parameters:
        currentDirectory - the path to start in
    • Method Detail

      • getFiltersInitialized

        protected boolean getFiltersInitialized()
        Returns whether the filters have already been initialized.
        Specified by:
        getFiltersInitialized in class AbstractConfigurableExtensionFileFilterFileChooser<weka.core.converters.AbstractFileLoader,​weka.core.converters.AbstractFileSaver>
        Returns:
        true if the filters have been initialized
      • initFilters

        protected static void initFilters​(boolean reader,
                                          Class[] classes)
        initializes the SpreadSheetFileExtensionFilters.
        Parameters:
        reader - if true then the reader filters are initialized
        classnames - the classnames of the converters
      • getReaderForFile

        public weka.core.converters.AbstractFileLoader getReaderForFile​(File file)
        Returns the reader for the specified file.
        Specified by:
        getReaderForFile in interface FileTypeDeterminingFileChooser<weka.core.converters.AbstractFileLoader,​weka.core.converters.AbstractFileSaver>
        Parameters:
        file - the file to determine a reader for
        Returns:
        the reader, null if none found
      • getWriterForFile

        public weka.core.converters.AbstractFileSaver getWriterForFile​(File file)
        Returns the writer for the specified file.
        Specified by:
        getWriterForFile in interface FileTypeDeterminingFileChooser<weka.core.converters.AbstractFileLoader,​weka.core.converters.AbstractFileSaver>
        Parameters:
        file - the file to determine a reader for
        Returns:
        the writer, null if none found
      • readerForFile

        public static weka.core.converters.AbstractFileLoader readerForFile​(File file)
        Returns the reader for the specified file.
        Parameters:
        file - the file to determine a reader for
        Returns:
        the reader, null if none found
      • writerForFile

        public static weka.core.converters.AbstractFileSaver writerForFile​(File file)
        Returns the writer for the specified file.
        Parameters:
        file - the file to determine a reader for
        Returns:
        the writer, null if none found