Class DefaultMatrixFileLoader

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

public class DefaultMatrixFileLoader
extends MatrixFileLoader
Default implementation of a matrix loader. Loads four standard formats:
  • Ascii Full
  • Ascii Sparse
  • Binary Full
  • Binary Sparse
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Details

    • DefaultMatrixFileLoader

      public DefaultMatrixFileLoader()
    • DefaultMatrixFileLoader

      public DefaultMatrixFileLoader​(java.io.File file)
  • Method Details

    • loadObject

      public java.lang.Object loadObject​(ProgressUpdater progress_bar, InterfaceIOOptions options) throws java.io.IOException
      Description copied from class: FileLoader
      Loads data into an instance of the object corresponding to this loader. If loaded object is of type PersistentObject, this method should also set the file loader and reference URL for the object. TODO: make generic?
      Overrides:
      loadObject in class FileLoader
      Parameters:
      progress_bar - An optional progress updater. Can be null.
      options - Options defining the loading process
      Returns:
      Throws:
      java.io.IOException
    • loadMatrix

      public Jama.Matrix loadMatrix​(ProgressUpdater progress_bar) throws java.io.IOException, InterfaceIOException
      Specified by:
      loadMatrix in class MatrixFileLoader
      Throws:
      java.io.IOException
      InterfaceIOException
    • loadMatrixAsciiFullBlocking

      public Jama.Matrix loadMatrixAsciiFullBlocking​(ProgressUpdater progress_bar) throws java.io.IOException, InterfaceIOException
      Throws:
      java.io.IOException
      InterfaceIOException
    • loadMatrixAsciiSparseBlocking

      public Jama.Matrix loadMatrixAsciiSparseBlocking​(ProgressUpdater progress_bar) throws java.io.IOException
      Throws:
      java.io.IOException
    • loadMatrixBinaryFullBlocking

      public Jama.Matrix loadMatrixBinaryFullBlocking​(ProgressUpdater progress_bar) throws java.io.IOException
      Throws:
      java.io.IOException
    • loadMatrixBinarySparseBlocking

      public Jama.Matrix loadMatrixBinarySparseBlocking​(ProgressUpdater progress_bar) throws java.io.IOException
      Throws:
      java.io.IOException