Class AbstractJCampSpectrumReader

  • All Implemented Interfaces:
    adams.core.AdditionalInformationHandler, adams.core.CleanUpHandler, adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.io.FileFormatHandler, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.ShallowCopySupporter<adams.data.io.input.AbstractDataContainerReader>, adams.core.SizeOfHandler, adams.core.Stoppable, Serializable, Comparable
    Direct Known Subclasses:
    AniMLSpectrumReader, CMLSpectrumReader, JCampDXSpectrumReader

    public abstract class AbstractJCampSpectrumReader
    extends AbstractSpectrumReader
    Ancestor for JCamp spectrum formats.
    Version:
    $Revision: 1905 $
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • AbstractJCampSpectrumReader

        public AbstractJCampSpectrumReader()
    • Method Detail

      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class AbstractSpectrumReader
      • setUseFilenameAsID

        public void setUseFilenameAsID​(boolean value)
        Sets whether to use the filename as ID.
        Parameters:
        value - true if to use filename
      • getUseFilenameAsID

        public boolean getUseFilenameAsID()
        Returns whether to use the filename as ID.
        Returns:
        true if to use filename
      • useFilenameAsIDTipText

        public String useFilenameAsIDTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • initSampleData

        protected void initSampleData​(Map<String,​String> header,
                                      SampleData report)
        Initializes the sample data.
        Parameters:
        header - the header table to use
        report - the sample data to initialize
      • readData

        protected void readData()
        Performs the actual reading.
        Specified by:
        readData in class adams.data.io.input.AbstractDataContainerReader<Spectrum>