Class MatrixFileLoader

java.lang.Object
mgui.io.FileLoader
mgui.io.domestic.variables.MatrixFileLoader
All Implemented Interfaces:
InterfaceIO, IconObject
Direct Known Subclasses:
DefaultMatrixFileLoader

public abstract class MatrixFileLoader
extends FileLoader
  • Field Details

    • options

      protected MatrixInOptions options
    • has_header

      public boolean has_header
  • Constructor Details

    • MatrixFileLoader

      public MatrixFileLoader()
    • MatrixFileLoader

      public MatrixFileLoader​(java.io.File file)
      Constructs this loader with default options:

      Format = AsciiFull

      As type = Matrix

      Parameters:
      file -
    • MatrixFileLoader

      public MatrixFileLoader​(java.io.File file, MatrixInOptions.Format format)
      Constructs this loader with the given format, and default type:

      As type = Matrix

      Parameters:
      file -
    • MatrixFileLoader

      public MatrixFileLoader​(java.io.File file, MatrixInOptions.Format format, MatrixInOptions.Variable as_type)
      Constructs this loader with the specified format and type.
      Parameters:
      file -
  • Method Details

    • load

      public boolean load​(InterfaceIOOptions _options, ProgressUpdater progress_bar)
      Description copied from class: FileLoader
      Loads data from the set of files or URLs specified by options. Loading is controlled by the specifications of options. If loaded object is of type PersistentObject, this method should also set the file loader and reference URL for the object.

      This method should also set the URL reference and writer and loader attributes to match this one and its complement.

      Specified by:
      load in class FileLoader
      progress_bar - An optional progress updater. Can be null.
      Returns:
    • loadMatrix

      public abstract Jama.Matrix loadMatrix​(ProgressUpdater progress_bar) throws java.io.IOException, InterfaceIOException
      Throws:
      java.io.IOException
      InterfaceIOException
    • getObjectIcon

      public javax.swing.Icon getObjectIcon()
      Description copied from interface: IconObject
      Returns the Icon associated with this object.
      Specified by:
      getObjectIcon in interface IconObject
      Overrides:
      getObjectIcon in class FileLoader
      Returns: