Class SpreadSheetContainer

    • Field Detail

      • m_Source

        protected File m_Source
        the source.
      • m_Reader

        protected adams.data.io.input.SpreadSheetReader m_Reader
        the reader used to load the data.
    • Constructor Detail

      • SpreadSheetContainer

        public SpreadSheetContainer​(adams.data.io.input.SpreadSheetReader reader,
                                    File source)
        Loads the data using the specified reader.
        Parameters:
        reader - the reader to use
        source - the file to load
      • SpreadSheetContainer

        public SpreadSheetContainer​(adams.data.io.input.SpreadSheetReader reader,
                                    adams.core.io.PlaceholderFile source)
        Loads the data using the specified reader.
        Parameters:
        reader - the reader to use
        source - the file to load
    • Method Detail

      • getSource

        public String getSource()
        Returns the source of the data item.
        Returns:
        the source
      • canReload

        public boolean canReload()
        Whether it is possible to reload this item.
        Returns:
        true if reloadable
      • doReload

        protected String doReload()
        Reloads the data.
        Specified by:
        doReload in class AbstractDataContainer
        Returns:
        null if successfully reloaded, otherwise error message
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.
        Specified by:
        cleanUp in interface adams.core.CleanUpHandler
        Overrides:
        cleanUp in class AbstractDataContainer