Package loci.formats
Interface IFormatHandler
- All Superinterfaces:
AutoCloseable,Closeable,IMetadataConfigurable
- All Known Subinterfaces:
IFormatReader,IFormatWriter
- All Known Implementing Classes:
DelegateReader,FormatHandler,FormatReader,FormatWriter,ImageReader,ImageWriter,ReaderWrapper,SubResolutionFormatReader,WrappedReader,WriterWrapper
Interface for all biological file format readers and writers.
-
Method Summary
Modifier and TypeMethodDescriptionGets the name of this file format.Class<?> Returns the native data type of image planes for this reader, as returned byIFormatReader.openPlane(int, int, int, int, int)orIFormatWriter.savePlane(int, java.lang.Object).String[]Gets the default file suffixes for this file format.booleanisThisType(String name) Checks if the given string is a valid filename for this file format.voidSets the current file name.Methods inherited from interface loci.formats.IMetadataConfigurable
getMetadataOptions, getSupportedMetadataLevels, setMetadataOptions
-
Method Details
-
isThisType
Checks if the given string is a valid filename for this file format. -
getFormat
String getFormat()Gets the name of this file format. -
getSuffixes
String[] getSuffixes()Gets the default file suffixes for this file format. -
getNativeDataType
Class<?> getNativeDataType()Returns the native data type of image planes for this reader, as returned byIFormatReader.openPlane(int, int, int, int, int)orIFormatWriter.savePlane(int, java.lang.Object). For most readers this type will be a byte array; however, some readers call external APIs that work with other types such asBufferedImage. -
setId
Sets the current file name.- Throws:
FormatExceptionIOException
-