- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.plugin.AbstractRichPlugin
-
- io.scif.AbstractSCIFIOPlugin
-
- io.scif.AbstractFormat
-
- io.scif.formats.TestImgFormat
-
- All Implemented Interfaces:
Format,SCIFIOPlugin,Comparable<org.scijava.Prioritized>,org.scijava.Contextual,org.scijava.Identifiable,org.scijava.Locatable,org.scijava.log.Logged,org.scijava.plugin.HasPluginInfo,org.scijava.plugin.RichPlugin,org.scijava.plugin.SciJavaPlugin,org.scijava.plugin.SingletonPlugin,org.scijava.Prioritized,org.scijava.Versioned
public class TestImgFormat extends AbstractFormat
TestImgFormat is the file format reader for creatign test input data. It is mainly useful for testing, as image sources can be defined in memory, without requiring an actual dataset to exist on disk.Defining a TestImg is done via the
TestImgLocationclass.- Author:
- Mark Hiner, Curtis Rueden, Gabriel Einsdorf
- See Also:
TestImgLocation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestImgFormat.Checkerstatic classTestImgFormat.MetadataMetadata class for Fake format.static classTestImgFormat.ParserParser for Fake file format.static classTestImgFormat.ReaderReader for the Fake file format.static classTestImgFormat.TestImgTranslatorTranslator fromMetadatato TestImgFormat$Metadata .static classTestImgFormat.TestImgUtilsHelper methods for the test img file format.
-
Constructor Summary
Constructors Constructor Description TestImgFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String[]makeSuffixArray()Helper method to cache the suffix array for a format.-
Methods inherited from class io.scif.AbstractFormat
createChecker, createMetadata, createParser, createReader, createWriter, getCheckerClass, getFormatName, getMetadataClass, getParserClass, getReaderClass, getSuffixes, getWriterClass, isEnabled, setEnabled
-
Methods inherited from class io.scif.AbstractSCIFIOPlugin
getVersion, log
-
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
getInfo, getPriority, setInfo, setPriority, toString
-
Methods inherited from class org.scijava.AbstractContextual
context, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface io.scif.Format
ownsLocationType
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier
-
Methods inherited from interface io.scif.SCIFIOPlugin
getVersion, log
-
-
-
-
Method Detail
-
makeSuffixArray
protected String[] makeSuffixArray()
Description copied from class:AbstractFormatHelper method to cache the suffix array for a format. Concrete format classes should implement this method, returning an array of supported suffixes.- Specified by:
makeSuffixArrayin classAbstractFormat- Returns:
- Valid suffixes for this file format.
-
-