Module io.scif
Package io.scif

Interface Format

    • Method Detail

      • setEnabled

        void setEnabled​(boolean enabled)
        Toggle whether this Format should be used when checking image compatibility.
        Parameters:
        enabled - - if true, this Format will be used in image/IO. Default: true
      • isEnabled

        boolean isEnabled()
        Returns:
        True if this Format is active when checking image compatibility.
      • getFormatName

        String getFormatName()
        Gets the name of this file format.
        Returns:
        a String representation of this Format's name
      • getSuffixes

        String[] getSuffixes()
        Gets the default file suffixes for this file format.

        Sample valid suffixes:

        • png
        • avi
        • bmp
        Returns:
        an array of extensions associated with this Format
      • createChecker

        Checker createChecker()
                       throws FormatException
        Create an instance of the Checker associated with this format.
        Returns:
        A new Checker instance which can determine if sources are compatible with this Format.
        Throws:
        FormatException
      • createParser

        Parser createParser()
                     throws FormatException
        Create an instance of the Parser associated with this format.
        Returns:
        A new Parser instance capable of populating Metadata compatible with this Format.
        Throws:
        FormatException
      • createReader

        Reader createReader()
                     throws FormatException
        Creates an instance of the Reader associated with this format.
        Returns:
        A new Reader instance capable of reading datasets of this Format.
        Throws:
        FormatException
      • createWriter

        Writer createWriter()
                     throws FormatException
        Creates an instance of the Writer associated with this format.
        Returns:
        A new Writer instance capable of writing datasets of this Format.
        Throws:
        FormatException
      • getMetadataClass

        Class<?> getMetadataClass()
        Returns:
        The class of the Metadata associated with this format
      • getCheckerClass

        Class<?> getCheckerClass()
        Returns:
        The class of the Checker associated with this format
      • getParserClass

        Class<?> getParserClass()
        Returns:
        The class of the Parser associated with this format
      • getReaderClass

        Class<?> getReaderClass()
        Returns:
        The class of the Reader associated with this format
      • getWriterClass

        Class<?> getWriterClass()
        Returns:
        The class of the Writer associated with this format
      • ownsLocationType

        default boolean ownsLocationType​(org.scijava.io.location.Location outputLocation)
        This is only needed by Format that depend on their own Location types (e.g. OMEROFormat)
        Parameters:
        outputLocation -
        Returns:
        if this LocationType is owned by this format