Class AbstractAdamsExperimentReader

    • Constructor Detail

      • AbstractAdamsExperimentReader

        public AbstractAdamsExperimentReader()
    • Method Detail

      • getFormatDescription

        public abstract String getFormatDescription()
        Returns a string describing the format (used in the file chooser).
        Specified by:
        getFormatDescription in interface FileFormatHandler
        Returns:
        a description suitable for displaying in the file chooser
      • getFormatExtensions

        public abstract String[] getFormatExtensions()
        Returns the extension(s) of the format.
        Specified by:
        getFormatExtensions in interface FileFormatHandler
        Returns:
        the extension (without the dot!)
      • getCorrespondingWriter

        public abstract AbstractAdamsExperimentWriter getCorrespondingWriter()
        Returns, if available, the corresponding writer.
        Returns:
        the writer, null if none available
      • isAvailable

        public boolean isAvailable()
        Returns whether the reader is actually available.
        Returns:
        true if available and ready to use
      • check

        protected void check​(PlaceholderFile file)
        Performs checks.
        Parameters:
        file - the image file to check
      • doRead

        protected abstract AbstractExperiment doRead​(PlaceholderFile file)
        Performs the actual reading of the experiment file.
        Parameters:
        file - the file to read
        Returns:
        the experiment, null if failed to read
      • read

        public AbstractExperiment read​(PlaceholderFile file)
        Reads the experiment file.
        Parameters:
        file - the file to read
        Returns:
        the experiment, null if failed to read
      • getReaders

        public static Class[] getReaders()
        Returns a list with classes of readers.
        Returns:
        the reader classes