public abstract class AbstractFormat extends AbstractSCIFIOPlugin implements Format
Format implementations.| Constructor and Description |
|---|
AbstractFormat() |
| 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<? extends Checker> |
getCheckerClass() |
String |
getFormatName()
Gets the name of this file format.
|
Class<? extends Metadata> |
getMetadataClass() |
Class<? extends Parser> |
getParserClass() |
Class<? extends Reader> |
getReaderClass() |
String[] |
getSuffixes()
Gets the default file suffixes for this file format.
|
Class<? extends Writer> |
getWriterClass() |
boolean |
isEnabled() |
protected abstract String[] |
makeSuffixArray()
Helper method to cache the suffix array for a format.
|
void |
setEnabled(boolean enabled)
Toggle whether this Format should be used when checking image
compatibility.
|
getVersion, loggetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitownsLocationTypegetVersion, loggetIdentifiercontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationprotected abstract String[] makeSuffixArray()
public String[] getSuffixes()
FormatSample valid suffixes:
getSuffixes in interface Formatpublic void setEnabled(boolean enabled)
FormatsetEnabled in interface Formatenabled - - if true, this Format will be used in image/IO. Default:
truepublic boolean isEnabled()
public String getFormatName()
FormatgetFormatName in interface Formatpublic Metadata createMetadata() throws FormatException
FormatcreateMetadata in interface FormatMetadata instance compatible with this
Format's componentsFormatExceptionpublic Checker createChecker() throws FormatException
FormatcreateChecker in interface FormatChecker instance which can determine if
sources are compatible with this Format.FormatExceptionpublic Parser createParser() throws FormatException
FormatcreateParser in interface FormatParser instance capable of populating
Metadata compatible with this Format.FormatExceptionpublic Reader createReader() throws FormatException
FormatcreateReader in interface FormatReader instance capable of reading datasets
of this Format.FormatExceptionpublic Writer createWriter() throws FormatException
FormatcreateWriter in interface FormatWriter instance capable of writing datasets
of this Format.FormatExceptionpublic Class<? extends Metadata> getMetadataClass()
getMetadataClass in interface Formatpublic Class<? extends Checker> getCheckerClass()
getCheckerClass in interface Formatpublic Class<? extends Parser> getParserClass()
getParserClass in interface Formatpublic Class<? extends Reader> getReaderClass()
getReaderClass in interface Formatpublic Class<? extends Writer> getWriterClass()
getWriterClass in interface FormatCopyright © 2011–2026 SCIFIO. All rights reserved.