Class ImportDataTableLoader

java.lang.Object
mgui.io.FileLoader
mgui.io.domestic.datasources.ImportDataTableLoader
All Implemented Interfaces:
InterfaceIO, IconObject
Direct Known Subclasses:
ImportDataTableTextLoader

public abstract class ImportDataTableLoader
extends FileLoader
Imports data from an external format into a new DataSource table.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Field Details

  • Constructor Details

    • ImportDataTableLoader

      public ImportDataTableLoader()
  • Method Details

    • setDataSource

      public void setDataSource​(DataSource source)
      Sets the current DataSource for this loader.
      Parameters:
      source -
    • loadDataTable

      public abstract boolean loadDataTable​(java.lang.String name, java.util.ArrayList<DataField> fields, java.util.ArrayList<java.lang.Boolean> include, ProgressUpdater progress_bar) throws java.io.IOException
      Loads data from the current data file into a new data table, which will be created in data_source. Input file and data source must already have been set.
      Parameters:
      data_source - Data source to contain the new data table
      fields - Fields defining the import of data and the new table
      include - Specifies which fields to include in the new table
      progress_bar - Optional progress updater
      Returns:
      Success of the import
      Throws:
      java.io.IOException