public interface Format extends SCIFIOPlugin
The Format is a bag for all other SCIFIO components associated with
image IO in a given image format. It acts as a bridge and a black box for
creating components, and facilitates component intercommunication.
Formats are typically accessed through the
FormatService, which maintains a list of singleton
Formats and has many convenience methods relating to their use.
SCIFIO,
FormatService| Modifier and Type | Method and Description |
|---|---|
Checker |
createChecker()
Create an instance of the Checker associated with this format.
|
Metadata |
createMetadata()
Create an instance of the Metadata associated with this format.
|
Parser |
createParser()
Create an instance of the Parser associated with this format.
|
Reader |
createReader()
Creates an instance of the Reader associated with this format.
|
Writer |
createWriter()
Creates an instance of the Writer associated with this format.
|
Class<?> |
getCheckerClass() |
String |
getFormatName()
Gets the name of this file format.
|
Class<?> |
getMetadataClass() |
Class<?> |
getParserClass() |
Class<?> |
getReaderClass() |
String[] |
getSuffixes()
Gets the default file suffixes for this file format.
|
Class<?> |
getWriterClass() |
boolean |
isEnabled() |
default boolean |
ownsLocationType(org.scijava.io.location.Location outputLocation)
This is only needed by Format that depend on their own Location types
(e.g.
|
void |
setEnabled(boolean enabled)
Toggle whether this Format should be used when checking image
compatibility.
|
getVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationvoid setEnabled(boolean enabled)
enabled - - if true, this Format will be used in image/IO. Default:
trueboolean isEnabled()
String getFormatName()
String[] getSuffixes()
Sample valid suffixes:
Metadata createMetadata() throws FormatException
Metadata instance compatible with this
Format's componentsFormatExceptionChecker createChecker() throws FormatException
Checker instance which can determine if
sources are compatible with this Format.FormatExceptionParser createParser() throws FormatException
Parser instance capable of populating
Metadata compatible with this Format.FormatExceptionReader createReader() throws FormatException
Reader instance capable of reading datasets
of this Format.FormatExceptionWriter createWriter() throws FormatException
Writer instance capable of writing datasets
of this Format.FormatExceptionClass<?> getMetadataClass()
Class<?> getCheckerClass()
Class<?> getParserClass()
Class<?> getReaderClass()
Class<?> getWriterClass()
default boolean ownsLocationType(org.scijava.io.location.Location outputLocation)
outputLocation - Copyright © 2011–2026 SCIFIO. All rights reserved.