Package loci.formats
Interface IFormatReader
- All Superinterfaces:
AutoCloseable,Closeable,ICompressedTileReader,IFormatHandler,IMetadataConfigurable,IPyramidHandler
- All Known Implementing Classes:
AFIReader,AIMReader,AliconaReader,AmiraReader,AnalyzeReader,APLReader,APNGReader,ARFReader,AVIReader,BaseTiffReader,BaseZeissReader,BDReader,BDVReader,BIFormatReader,BioRadGelReader,BioRadReader,BioRadSCNReader,BMPReader,BrukerReader,BufferedImageReader,BurleighReader,CanonRawReader,CellH5Reader,CellomicsReader,CellSensReader,CellVoyagerReader,CellWorxReader,ChannelFiller,ChannelMerger,ChannelSeparator,ColumbusReader,CV7000Reader,DCIMGReader,DelegateReader,DeltavisionReader,DicomReader,DimensionSwapper,DNGReader,Ecat7Reader,EPSReader,FakeReader,FEIReader,FEITiffReader,FilePatternReader,FileStitcher,FitsReader,FlexReader,FlowSightReader,FluoviewReader,FormatReader,FujiReader,FV1000Reader,GatanDM2Reader,GatanReader,GelReader,GIFReader,HamamatsuVMSReader,HISReader,HitachiReader,HRDGDFReader,I2IReader,ICSReader,IM3Reader,ImaconReader,ImageIOReader,ImageProcessorReader,ImageReader,ImagicReader,ImarisHDFReader,ImarisReader,ImarisTiffReader,IMODReader,ImprovisionTiffReader,ImspectorReader,InCell3000Reader,InCellReader,INRReader,InveonReader,IonpathMIBITiffReader,IPLabReader,IPWReader,IvisionReader,JDCEReader,JEOLReader,JPEG2000Reader,JPEGReader,JPEGReader.DefaultJPEGReader,JPKReader,JPXReader,KhorosReader,KLBReader,KodakReader,L2DReader,LeicaReader,LeicaSCNReader,LEOReader,LiFlimReader,LIFReader,LIMReader,LMSFileReader,LOFReader,Memoizer,MetamorphReader,MetamorphTiffReader,MetaxpressTiffReader,MIASReader,MicroCTReader,MicromanagerReader,MikroscanTiffReader,MINCReader,MinimalTiffReader,MinMaxCalculator,MNGReader,MolecularImagingReader,MRCReader,MRWReader,MultipleImagesReader,NAFReader,ND2Reader,NDPIReader,NDPISReader,NiftiReader,NikonElementsTiffReader,NikonReader,NikonTiffReader,NRRDReader,OBFReader,OIRReader,OlympusTileReader,OMETiffReader,OMEXMLReader,OpenlabRawReader,OpenlabReader,OperettaReader,OxfordInstrumentsReader,PCIReader,PCORAWReader,PCXReader,PDSReader,PerkinElmerReader,PGMReader,PhotoshopTiffReader,PictReader,PovrayReader,PQBinReader,PrairieReader,PSDReader,PyramidTiffReader,QTReader,QuesantReader,RCPNLReader,ReaderWrapper,RHKReader,SBIGReader,ScanrReader,SDTReader,SeikoReader,SEQReader,SIFReader,SimplePCITiffReader,SISReader,SlideBook7Reader,SlidebookReader,SlidebookTiffReader,SMCameraReader,SPCReader,SPEReader,SpiderReader,SubResolutionFormatReader,SVSReader,TargaReader,TCSReader,TecanReader,TextReader,TiffDelegateReader,TiffJAIReader,TiffReader,TileJPEGReader,TileStitcher,TillVisionReader,TissueFAXSReader,TopometrixReader,TrestleReader,UBMReader,UnisokuReader,VarianFDFReader,VectraReader,VeecoReader,VentanaReader,VGSAMReader,VirtualReader,VisitechReader,VolocityClippingReader,VolocityReader,WATOPReader,WrappedReader,XLEFReader,ZeissCZIReader,ZeissLMSReader,ZeissLSMReader,ZeissTIFFReader,ZeissXRMReader,ZeissZVIReader,ZipReader
Interface for all biological file format readers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFile grouping options. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose(boolean fileOnly) Closes the currently open file.intcoreIndexToSeries(int index) Deprecated.This method is no longer required for sub-resolution support.intReturns an indication of whether the files in a multi-file dataset can be handled individually.short[][]Gets the 16-bit color lookup table associated with the most recently opened image.byte[][]Gets the 8-bit color lookup table associated with the most recently opened image.FileInfo[]getAdvancedSeriesUsedFiles(boolean noPixels) Returns an array of FileInfo objects representing the files needed to open the current series.FileInfo[]getAdvancedUsedFiles(boolean noPixels) Returns an array of FileInfo objects representing the files needed to open this dataset.intGets the number of valid bits per pixel.intDeprecated.This method is no longer required for sub-resolution support.Deprecated.Reader internals should not be accessed by reader usersReturns the current file.Returns a short description of the dataset structure.Gets a five-character string representing the dimension order in which planes will be returned.String[]Returns the list of domains represented by the current file.intGets the effective size of the C dimension, guaranteeing that getEffectiveSizeC() * getSizeZ() * getSizeT() == getImageCount() regardless of the result of isRGB().default ByteReturn the fill value for undefined pixels.Obtains the hashtable containing the metadata field/value pairs from the current file.intDetermines the number of image planes in the current file.intgetIndex(int z, int c, int t) Gets the rasterized index corresponding to the given Z, C and T coordinates (real sizes).intgetIndex(int z, int c, int t, int moduloZ, int moduloC, int moduloT) Gets the rasterized index corresponding to the given Z, C, T, moduloZ, moduloC and moduloT coordinates (effective sizes).Retrieves the current metadata store for this reader.Retrieves the current metadata store's root object.getMetadataValue(String field) Obtains the specified metadata field's value for the current file.intReturns the optimal sub-image height for use with openBytes.intReturns the optimal sub-image width for use with openBytes.intGets the pixel type.String[]Returns a list of scientific domains in which this format is used.intgetRequiredDirectories(String[] files) Returns the number of parent directories that are important when processing the given list of files.intGets the number of channels returned with each call to openBytes.intGets the currently active series.intGets the number of series in this file.Obtains the hashtable containing metadata field/value pairs from the current series in the current file.getSeriesMetadataValue(String field) Obtains the specified metadata field's value for the current series in the current file.String[]Returns an array of filenames needed to open the current series.String[]getSeriesUsedFiles(boolean noPixels) Returns an array of filenames needed to open the current series.intgetSizeC()Gets the size of the C dimension.intgetSizeT()Gets the size of the T dimension.intgetSizeX()Gets the size of the X dimension.intgetSizeY()Gets the size of the Y dimension.intgetSizeZ()Gets the size of the Z dimension.intGet the size of the X dimension for the thumbnail.intGet the size of the Y dimension for the thumbnail.Retrieves all underlying readers.String[]Returns an array of filenames needed to open this dataset.String[]getUsedFiles(boolean noPixels) Returns an array of filenames needed to open this dataset.int[]getZCTCoords(int index) Gets the Z, C and T coordinates (real sizes) corresponding to the given rasterized index value.int[]getZCTModuloCoords(int index) Gets the Z, C, T, moduloZ, moduloC and moduloT coordinates (effective sizes) corresponding to the given rasterized index value.booleanReturns true if this format supports multi-file datasets.booleanReturn whether or not resolution flattening is enabled.booleanReturns false ifisIndexed()is false, or ifisIndexed()is true and the lookup table represents "real" color data.booleanReturns true if we should group files in multi-file formats.booleanGets whether the image planes are indexed color.booleanGets whether or not the channels are interleaved.booleanisInterleaved(int subC) Gets whether or not the given sub-channel is interleaved.booleanGets whether the data is in little-endian format.booleanReturns true if this format's metadata is completely parsed.booleanReturns true if ugly metadata (entries with unprintable characters, and extremely large entries) are discarded from the metadata table.booleanReturns true if we should normalize float data.booleanGets whether the dimension order and sizes are known, or merely guesses.booleanReturns true if we should save proprietary metadata in the MetadataStore.booleanisRGB()Checks if the image planes in the file have more than one channel peropenBytes(int)call.booleanisSingleFile(String id) Returns true if the named file is expected to be the only file in the dataset.booleanisThisType(byte[] block) Checks if the given block is a valid header for this file format.booleanisThisType(String name, boolean open) Checks if the given file is a valid instance of this file format.booleanisThisType(loci.common.RandomAccessInputStream stream) Checks if the given stream is a valid stream for this file format.booleanGets whether the current series is a lower resolution copy of a different series.byte[]openBytes(int no) Obtains the specified image plane from the current file as a byte array.byte[]openBytes(int no, byte[] buf) Obtains the specified image plane from the current file into a pre-allocated byte array of (sizeX * sizeY * bytesPerPixel * RGB channel count).byte[]openBytes(int no, byte[] buf, int x, int y, int w, int h) Obtains a sub-image of the specified image plane into a pre-allocated byte array.byte[]openBytes(int no, int x, int y, int w, int h) Obtains a sub-image of the specified image plane, whose upper-left corner is given by (x, y).openPlane(int no, int x, int y, int w, int h) Obtains the specified image plane (or sub-image thereof) in the reader's native data structure.byte[]openThumbBytes(int no) Obtains a thumbnail for the specified image plane from the current file, as a byte array.voidReopen any files that were closed, and which are expected to be open while the reader is open.intseriesToCoreIndex(int series) Deprecated.This method is no longer required for sub-resolution support.voidsetCoreIndex(int no) Deprecated.This method is no longer required for sub-resolution support.default voidsetFillColor(Byte color) Set the fill value for undefined pixels.voidsetFlattenedResolutions(boolean flatten) Set whether or not to flatten resolutions into individual series.voidsetGroupFiles(boolean group) Specifies whether or not to force grouping in multi-file formats.voidsetMetadataFiltered(boolean filter) Specifies whether ugly metadata (entries with unprintable characters, and extremely large entries) should be discarded from the metadata table.voidsetMetadataStore(MetadataStore store) Sets the default metadata store for this reader.voidsetNormalized(boolean normalize) Specifies whether or not to normalize float data.voidsetOriginalMetadataPopulated(boolean populate) Specifies whether or not to save proprietary metadata in the MetadataStore.voidsetSeries(int no) Activates the specified series.Methods inherited from interface loci.formats.ICompressedTileReader
getTileCodec, getTileCodecOptions, getTileColumns, getTileRows, openCompressedBytes, openCompressedBytesMethods inherited from interface loci.formats.IFormatHandler
getFormat, getNativeDataType, getSuffixes, isThisType, setIdMethods inherited from interface loci.formats.IMetadataConfigurable
getMetadataOptions, getSupportedMetadataLevels, setMetadataOptionsMethods inherited from interface loci.formats.IPyramidHandler
getResolution, getResolutionCount, setResolution
-
Field Details
-
MUST_GROUP
static final int MUST_GROUPFile grouping options.- See Also:
-
CAN_GROUP
static final int CAN_GROUP- See Also:
-
CANNOT_GROUP
static final int CANNOT_GROUP- See Also:
-
-
Method Details
-
isThisType
Checks if the given file is a valid instance of this file format.- Parameters:
open- If true, and the file extension is insufficient to determine the file type, the file may be opened for further analysis, or other relatively expensive file system operations (such as file existence tests and directory listings) may be performed. If false, file system access is not allowed.
-
isThisType
boolean isThisType(byte[] block) Checks if the given block is a valid header for this file format.- See Also:
-
isThisType
Checks if the given stream is a valid stream for this file format. The number of bytes read is format-dependent.- Parameters:
stream- A RandomAccessInputStream representing the file to check. The first byte in the stream is assumed to be the first byte in the file.- Returns:
- true if the file represented by the stream can be read by this reader; false otherwise.
- Throws:
IOException
-
getImageCount
int getImageCount()Determines the number of image planes in the current file. -
isRGB
boolean isRGB()Checks if the image planes in the file have more than one channel peropenBytes(int)call. This method returns true if and only ifgetRGBChannelCount()returns a value greater than 1. -
getSizeX
int getSizeX()Gets the size of the X dimension. -
getSizeY
int getSizeY()Gets the size of the Y dimension. -
getSizeZ
int getSizeZ()Gets the size of the Z dimension. -
getSizeC
int getSizeC()Gets the size of the C dimension. -
getSizeT
int getSizeT()Gets the size of the T dimension. -
getPixelType
int getPixelType()Gets the pixel type.- Returns:
- the pixel type as an enumeration from
FormatToolsstatic pixel types such asFormatTools.INT8.
-
getBitsPerPixel
int getBitsPerPixel()Gets the number of valid bits per pixel. The number of valid bits per pixel is always less than or equal to the number of bits per pixel that correspond togetPixelType(). -
getEffectiveSizeC
int getEffectiveSizeC()Gets the effective size of the C dimension, guaranteeing that getEffectiveSizeC() * getSizeZ() * getSizeT() == getImageCount() regardless of the result of isRGB(). -
getRGBChannelCount
int getRGBChannelCount()Gets the number of channels returned with each call to openBytes. The most common case where this value is greater than 1 is for interleaved RGB data, such as a 24-bit color image plane. However, it is possible for this value to be greater than 1 for non-interleaved data, such as an RGB TIFF with Planar rather than Chunky configuration. -
isIndexed
boolean isIndexed()Gets whether the image planes are indexed color. This value has no impact ongetSizeC(),getEffectiveSizeC()orgetRGBChannelCount(). -
isFalseColor
boolean isFalseColor()Returns false ifisIndexed()is false, or ifisIndexed()is true and the lookup table represents "real" color data. Returns true ifisIndexed()is true and the lookup table is only present to aid in visualization. -
get8BitLookupTable
Gets the 8-bit color lookup table associated with the most recently opened image. If no image planes have been opened, or ifisIndexed()returns false, then this may return null. Also, ifgetPixelType()returns anything other thanFormatTools.INT8orFormatTools.UINT8, this method will return null.- Throws:
FormatExceptionIOException
-
get16BitLookupTable
Gets the 16-bit color lookup table associated with the most recently opened image. If no image planes have been opened, or ifisIndexed()returns false, then this may return null. Also, ifgetPixelType()returns anything other thanFormatTools.INT16orFormatTools.UINT16, this method will return null.- Throws:
FormatExceptionIOException
-
getModuloZ
Modulo getModuloZ() -
getModuloC
Modulo getModuloC() -
getModuloT
Modulo getModuloT() -
getThumbSizeX
int getThumbSizeX()Get the size of the X dimension for the thumbnail. -
getThumbSizeY
int getThumbSizeY()Get the size of the Y dimension for the thumbnail. -
isLittleEndian
boolean isLittleEndian()Gets whether the data is in little-endian format. -
getDimensionOrder
String getDimensionOrder()Gets a five-character string representing the dimension order in which planes will be returned. Valid orders are:- XYCTZ
- XYCZT
- XYTCZ
- XYTZC
- XYZCT
- XYZTC
isInterleaved()method will return true. -
isOrderCertain
boolean isOrderCertain()Gets whether the dimension order and sizes are known, or merely guesses. -
isThumbnailSeries
boolean isThumbnailSeries()Gets whether the current series is a lower resolution copy of a different series. -
isInterleaved
boolean isInterleaved()Gets whether or not the channels are interleaved. This method exists because X and Y must appear first in the dimension order. For interleaved data,getDimensionOrder()returns XYCTZ or XYCZT, and this method returns true. Note that this flag returns whether or not the data returned byopenBytes(int)is interleaved. In most cases, this will match the interleaving in the original file, but for some formats (e.g. TIFF) channel re-ordering is done internally and the return value of this method will not match what is in the original file. -
isInterleaved
boolean isInterleaved(int subC) Gets whether or not the given sub-channel is interleaved. This method exists because some data with multiple rasterized sub-dimensions within C have one sub-dimension interleaved, and the other not—e.g.,SDTReaderhandles spectral-lifetime data with interleaved lifetime bins and non-interleaved spectral channels. -
openBytes
Obtains the specified image plane from the current file as a byte array.- Throws:
FormatExceptionIOException- See Also:
-
openBytes
Obtains a sub-image of the specified image plane, whose upper-left corner is given by (x, y).- Throws:
FormatExceptionIOException
-
openBytes
Obtains the specified image plane from the current file into a pre-allocated byte array of (sizeX * sizeY * bytesPerPixel * RGB channel count).- Parameters:
no- the plane index within the current series.buf- a pre-allocated buffer.- Returns:
- the pre-allocated buffer
buffor convenience. - Throws:
FormatException- if there was a problem parsing the metadata of the file.IOException- if there was a problem reading the file.
-
openBytes
byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException Obtains a sub-image of the specified image plane into a pre-allocated byte array.- Parameters:
no- the plane index within the current series.buf- a pre-allocated buffer.x- X coordinate of the upper-left corner of the sub-imagey- Y coordinate of the upper-left corner of the sub-imagew- width of the sub-imageh- height of the sub-image- Returns:
- the pre-allocated buffer
buffor convenience. - Throws:
FormatException- if there was a problem parsing the metadata of the file.IOException- if there was a problem reading the file.
-
openPlane
Obtains the specified image plane (or sub-image thereof) in the reader's native data structure. For most readers this is a byte array; however, some readers call external APIs that work with other types such asBufferedImage. The openPlane method exists to maintain generality and efficiency while avoiding pollution of the API with AWT-specific logic.- Throws:
FormatExceptionIOException- See Also:
-
openThumbBytes
Obtains a thumbnail for the specified image plane from the current file, as a byte array.- Throws:
FormatExceptionIOException
-
close
Closes the currently open file. If the flag is set, this is all that happens; if unset, it is equivalent to callingCloseable.close().- Throws:
IOException
-
getSeriesCount
int getSeriesCount()Gets the number of series in this file. -
setSeries
void setSeries(int no) Activates the specified series. This also resets the resolution to 0. -
getSeries
int getSeries()Gets the currently active series. -
setNormalized
void setNormalized(boolean normalize) Specifies whether or not to normalize float data. -
isNormalized
boolean isNormalized()Returns true if we should normalize float data. -
setOriginalMetadataPopulated
void setOriginalMetadataPopulated(boolean populate) Specifies whether or not to save proprietary metadata in the MetadataStore. -
isOriginalMetadataPopulated
boolean isOriginalMetadataPopulated()Returns true if we should save proprietary metadata in the MetadataStore. -
setGroupFiles
void setGroupFiles(boolean group) Specifies whether or not to force grouping in multi-file formats.- See Also:
-
isGroupFiles
boolean isGroupFiles()Returns true if we should group files in multi-file formats.- See Also:
-
setFillColor
Set the fill value for undefined pixels. This can be used to override the default fill value defined in a reader. The default implementation in IFormatReader is a no-op.- Parameters:
color- value that will be used to fill pixel byte arrays
-
getFillColor
Return the fill value for undefined pixels. The default implementation in IFormatReader always returns 0.- See Also:
-
isMetadataComplete
boolean isMetadataComplete()Returns true if this format's metadata is completely parsed. -
fileGroupOption
Returns an indication of whether the files in a multi-file dataset can be handled individually. This method is only useful for formats and datasets which contain multiple files.- Parameters:
id- a file in the multi-file dataset- Returns:
- an int indicating that we cannot, must, or might group the files.
A return value of
FormatTools.MUST_GROUPindicates that the files cannot be handled separately; the reader will always detect and read all files in the dataset.FormatTools.CAN_GROUPindicates that the files may be handled separately, but file grouping must then be disabled viasetGroupFiles(boolean).FormatTools.CANNOT_GROUPindicates that the files must be handled separately; the reader will not attempt to read all files in the dataset (this is rare). - Throws:
FormatExceptionIOException- See Also:
-
getUsedFiles
String[] getUsedFiles()Returns an array of filenames needed to open this dataset. The first element in the array is expected to be the path passed toIFormatHandler.setId(String). The remaining elements are expected to be in a consistent order; if a directory listing is necessary to build the list then it should be sorted first. -
getUsedFiles
Returns an array of filenames needed to open this dataset. If the 'noPixels' flag is set, then only files that do not contain pixel data will be returned. The first element in the array is expected to be the path passed toIFormatHandler.setId(String), if appropriate based upon 'noPixels'. The remaining elements are expected to be in a consistent order; if a directory listing is necessary to build the list then it should be sorted first. -
getSeriesUsedFiles
String[] getSeriesUsedFiles()Returns an array of filenames needed to open the current series. The first element in the array is expected to be the path passed toIFormatHandler.setId(String). The remaining elements are expected to be in a consistent order; if a directory listing is necessary to build the list then it should be sorted first. -
getSeriesUsedFiles
Returns an array of filenames needed to open the current series. If the 'noPixels' flag is set, then only files that do not contain pixel data will be returned. The first element in the array is expected to be the path passed toIFormatHandler.setId(String), if appropriate based upon 'noPixels'. The remaining elements are expected to be in a consistent order; if a directory listing is necessary to build the list then it should be sorted first. -
getAdvancedUsedFiles
Returns an array of FileInfo objects representing the files needed to open this dataset. If the 'noPixels' flag is set, then only files that do not contain pixel data will be returned. -
getAdvancedSeriesUsedFiles
Returns an array of FileInfo objects representing the files needed to open the current series. If the 'noPixels' flag is set, then only files that do not contain pixel data will be returned. -
getCurrentFile
String getCurrentFile()Returns the current file. -
getDomains
String[] getDomains()Returns the list of domains represented by the current file. -
getIndex
int getIndex(int z, int c, int t) Gets the rasterized index corresponding to the given Z, C and T coordinates (real sizes). -
getIndex
int getIndex(int z, int c, int t, int moduloZ, int moduloC, int moduloT) Gets the rasterized index corresponding to the given Z, C, T, moduloZ, moduloC and moduloT coordinates (effective sizes). Note that the Z, C and T coordinates take the modulo dimension sizes into account. The effective size for each of these dimensions is limited to the total size of the dimension divided by the modulo size. -
getZCTCoords
int[] getZCTCoords(int index) Gets the Z, C and T coordinates (real sizes) corresponding to the given rasterized index value. -
getZCTModuloCoords
int[] getZCTModuloCoords(int index) Gets the Z, C, T, moduloZ, moduloC and moduloT coordinates (effective sizes) corresponding to the given rasterized index value. Note that the Z, C and T coordinates are not the same as those returned by getZCTCoords(int) because the size of the modulo dimensions is taken into account. The effective size for each of these dimensions is limited to the total size of the dimension divided by the modulo size. -
getMetadataValue
Obtains the specified metadata field's value for the current file.- Parameters:
field- the name associated with the metadata field- Returns:
- the value, or null if the field doesn't exist
-
getSeriesMetadataValue
Obtains the specified metadata field's value for the current series in the current file.- Parameters:
field- the name associated with the metadata field- Returns:
- the value, or null if the field doesn't exist
-
getGlobalMetadata
Obtains the hashtable containing the metadata field/value pairs from the current file.- Returns:
- the hashtable containing all non-series-specific metadata from the file
-
getSeriesMetadata
Obtains the hashtable containing metadata field/value pairs from the current series in the current file. -
getCoreMetadataList
Deprecated.Reader internals should not be accessed by reader usersObtains the core metadata values for the current file. -
setMetadataFiltered
void setMetadataFiltered(boolean filter) Specifies whether ugly metadata (entries with unprintable characters, and extremely large entries) should be discarded from the metadata table. -
isMetadataFiltered
boolean isMetadataFiltered()Returns true if ugly metadata (entries with unprintable characters, and extremely large entries) are discarded from the metadata table. -
setMetadataStore
Sets the default metadata store for this reader.- Parameters:
store- a metadata store implementation.
-
getMetadataStore
MetadataStore getMetadataStore()Retrieves the current metadata store for this reader. You can be assured that this method will never return anullmetadata store.- Returns:
- A metadata store implementation.
-
getMetadataStoreRoot
Object getMetadataStoreRoot()Retrieves the current metadata store's root object. It is guaranteed that all file parsing has been performed by the reader prior to retrieval. Requests for a full populated root object should be made using this method.- Returns:
- Current metadata store's root object fully populated.
-
getUnderlyingReaders
IFormatReader[] getUnderlyingReaders()Retrieves all underlying readers. Returns null if there are no underlying readers. -
isSingleFile
Returns true if the named file is expected to be the only file in the dataset. For single-file formats, always returns true.- Throws:
FormatExceptionIOException
-
getRequiredDirectories
Returns the number of parent directories that are important when processing the given list of files. The number of directories is relative to the common parent. For example, given a list with these two files: /path/to/file/foo /path/to/file/that/is/related A return value of 0 indicates that "/path/to/file/" is irrelevant. A return value of 1 indicates that "/path/to/" is irrelevant. Return values less than 0 are invalid. All listed files are assumed to belong to datasets of the same format.- Throws:
FormatExceptionIOException
-
getDatasetStructureDescription
String getDatasetStructureDescription()Returns a short description of the dataset structure. -
getPossibleDomains
Returns a list of scientific domains in which this format is used.- Throws:
FormatExceptionIOException
-
hasCompanionFiles
boolean hasCompanionFiles()Returns true if this format supports multi-file datasets. -
getOptimalTileWidth
int getOptimalTileWidth()Returns the optimal sub-image width for use with openBytes. -
getOptimalTileHeight
int getOptimalTileHeight()Returns the optimal sub-image height for use with openBytes. -
seriesToCoreIndex
Deprecated.This method is no longer required for sub-resolution support.Returns the first core index corresponding to the specified series. -
coreIndexToSeries
Deprecated.This method is no longer required for sub-resolution support.Returns the series corresponding to the specified core index. -
getCoreIndex
Deprecated.This method is no longer required for sub-resolution support.Return the index into CoreMetadata of the current resolution/series. -
setCoreIndex
Deprecated.This method is no longer required for sub-resolution support.Set the current resolution/series (ignores subresolutions). Equivalent to setSeries, but with flattened resolutions always set to false. -
hasFlattenedResolutions
boolean hasFlattenedResolutions()Return whether or not resolution flattening is enabled. -
setFlattenedResolutions
void setFlattenedResolutions(boolean flatten) Set whether or not to flatten resolutions into individual series. -
reopenFile
Reopen any files that were closed, and which are expected to be open while the reader is open. This assumes thatIFormatHandler.setId(java.lang.String)has been called, but close(false) has not been called.- Throws:
IOException
-