- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.plugin.AbstractRichPlugin
-
- io.scif.AbstractSCIFIOPlugin
-
- io.scif.AbstractHasFormat
-
- io.scif.AbstractChecker
-
- io.scif.formats.KontronFormat.Checker
-
- All Implemented Interfaces:
Checker,HasFormat,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.Prioritized,org.scijava.Versioned
- Enclosing class:
- KontronFormat
public static class KontronFormat.Checker extends AbstractChecker
-
-
Constructor Summary
Constructors Constructor Description Checker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisFormat(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream)Checks if the given stream is a valid stream for thisFormat.booleansuffixNecessary()Whether the file extension matching one of the format's suffixes is necessary to identify the file as a source compatible with this format.booleansuffixSufficient()Whether the file extension matching one of the format's suffixes is sufficient to identify the file as a source compatible with this format.-
Methods inherited from class io.scif.AbstractChecker
checkHeader, isFormat, isFormat
-
Methods inherited from class io.scif.AbstractHasFormat
asBrowsableLocation, asBrowsableLocation, getFormat, getFormatName
-
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.HasFormat
getFormat, getFormatName
-
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
-
suffixSufficient
public boolean suffixSufficient()
Description copied from interface:CheckerWhether the file extension matching one of the format's suffixes is sufficient to identify the file as a source compatible with this format.If false, the source will have to be read to determine compatibility.
- Specified by:
suffixSufficientin interfaceChecker- Overrides:
suffixSufficientin classAbstractChecker
-
suffixNecessary
public boolean suffixNecessary()
Description copied from interface:CheckerWhether the file extension matching one of the format's suffixes is necessary to identify the file as a source compatible with this format.- Specified by:
suffixNecessaryin interfaceChecker- Overrides:
suffixNecessaryin classAbstractChecker
-
isFormat
public boolean isFormat(org.scijava.io.handle.DataHandle<org.scijava.io.location.Location> stream) throws IOException
Description copied from interface:CheckerChecks if the given stream is a valid stream for thisFormat.- Specified by:
isFormatin interfaceChecker- Overrides:
isFormatin classAbstractChecker- Parameters:
stream- the image source to check.- Returns:
- True if
streamis compatible with thisFormat. - Throws:
IOException
-
-