Package loci.formats.in
Class FilePatternReader
java.lang.Object
loci.formats.FormatHandler
loci.formats.FormatReader
loci.formats.WrappedReader
loci.formats.in.FilePatternReader
- All Implemented Interfaces:
Closeable,AutoCloseable,ICompressedTileReader,IFormatHandler,IFormatReader,IMetadataConfigurable,IPyramidHandler
-
Field Summary
FieldsFields inherited from class loci.formats.FormatReader
core, coreIndex, datasetDescription, domains, fillColor, filterMetadata, flattenedResolutions, group, hasCompanionFiles, in, indexedAsRGB, metadata, metadataStore, normalizeData, resolution, saveOriginalMetadata, series, suffixNecessary, suffixSufficient, THUMBNAIL_DIMENSIONFields inherited from class loci.formats.FormatHandler
COMPRESSION_SUFFIXES, currentId, format, LOGGER, metadataOptions, suffixesFields inherited from interface loci.formats.IFormatReader
CAN_GROUP, CANNOT_GROUP, MUST_GROUP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshort[][]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.Obtains the core metadata values for the current file.protected ReaderWrapperGet the helper class that reads imagesRetrieves the current metadata store for this reader.String[]getSeriesUsedFiles(boolean noPixels) Returns an array of filenames needed to open the current series.String[]getUsedFiles(boolean noPixels) Returns an array of filenames needed to open this dataset.booleanReturns true if this format supports multi-file datasets.booleanReturn whether or not resolution flattening is enabled.protected voidInitializes the given file (parsing header information, etc.).booleanReturns true if we should group files in multi-file formats.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.booleanReturns true if we should save proprietary metadata in the MetadataStore.booleanisSingleFile(String id) Returns true if the named file is expected to be the only file in the dataset.voidsetFlattenedResolutions(boolean flattened) 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.Methods inherited from class loci.formats.WrappedReader
callDeferredSetters, close, close, coreIndexToSeries, getBitsPerPixel, getCoreIndex, getDatasetStructureDescription, getDimensionOrder, getDomains, getEffectiveSizeC, getGlobalMetadata, getImageCount, getIndex, getMetadataStoreRoot, getMetadataValue, getModuloC, getModuloT, getModuloZ, getNativeDataType, getOptimalTileHeight, getOptimalTileWidth, getPixelType, getPossibleDomains, getResolution, getResolutionCount, getRGBChannelCount, getSeries, getSeriesCount, getSeriesMetadata, getSeriesMetadataValue, getSizeC, getSizeT, getSizeX, getSizeY, getSizeZ, getThumbSizeX, getThumbSizeY, getUnderlyingReaders, getZCTCoords, isFalseColor, isIndexed, isInterleaved, isInterleaved, isLittleEndian, isMetadataComplete, isOrderCertain, isRGB, isThumbnailSeries, openBytes, openBytes, openBytes, openBytes, openPlane, openThumbBytes, reopenFile, seriesToCoreIndex, setCoreIndex, setResolution, setSeriesMethods inherited from class loci.formats.FormatReader
addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMeta, addGlobalMetaList, addMeta, addMetaList, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMeta, addSeriesMetaList, fileGroupOption, flattenHashtables, getAcquisitionMode, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getArcType, getAvailableOptions, getBinning, getCompression, getContrastMethod, getCorrection, getCurrentCore, getCurrentFile, getDetectorType, getDimensionOrder, getExperimentType, getFilamentType, getFillColor, getFillRule, getFilterType, getFontFamily, getFontStyle, getGlobalMeta, getIlluminationType, getImmersion, getIndex, getLaserMedium, getLaserType, getMarker, getMedium, getMicrobeamManipulationType, getMicroscopeType, getNamingConvention, getPixelType, getPulse, getRequiredDirectories, getRotationTransform, getSeriesMeta, getSeriesUsedFiles, getTileColumns, getTileRows, getUsedFiles, getZCTModuloCoords, isThisType, isThisType, isThisType, isThisType, isUsedFile, makeFilterMetadata, readPlane, readPlane, readPlane, setFillColor, setId, updateMetadataListsMethods inherited from class loci.formats.FormatHandler
checkSuffix, checkSuffix, getFormat, getMetadataOptions, getSuffixes, getSupportedMetadataLevels, setMetadataOptionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface loci.formats.ICompressedTileReader
getTileCodec, getTileCodecOptions, openCompressedBytes, openCompressedBytesMethods inherited from interface loci.formats.IFormatHandler
getFormat, getSuffixesMethods inherited from interface loci.formats.IMetadataConfigurable
getMetadataOptions, getSupportedMetadataLevels, setMetadataOptions
-
Field Details
-
helper
-
-
Constructor Details
-
FilePatternReader
public FilePatternReader()Constructs a new pattern reader.
-
-
Method Details
-
getHelper
Description copied from class:WrappedReaderGet the helper class that reads images- Specified by:
getHelperin classWrappedReader
-
setGroupFiles
public void setGroupFiles(boolean group) Description copied from interface:IFormatReaderSpecifies whether or not to force grouping in multi-file formats.- Specified by:
setGroupFilesin interfaceIFormatReader- Overrides:
setGroupFilesin classFormatReader- See Also:
-
isGroupFiles
public boolean isGroupFiles()Description copied from interface:IFormatReaderReturns true if we should group files in multi-file formats.- Specified by:
isGroupFilesin interfaceIFormatReader- Overrides:
isGroupFilesin classFormatReader- See Also:
-
setNormalized
public void setNormalized(boolean normalize) Description copied from interface:IFormatReaderSpecifies whether or not to normalize float data.- Specified by:
setNormalizedin interfaceIFormatReader- Overrides:
setNormalizedin classFormatReader
-
isNormalized
public boolean isNormalized()Description copied from interface:IFormatReaderReturns true if we should normalize float data.- Specified by:
isNormalizedin interfaceIFormatReader- Overrides:
isNormalizedin classFormatReader
-
setOriginalMetadataPopulated
public void setOriginalMetadataPopulated(boolean populate) Description copied from interface:IFormatReaderSpecifies whether or not to save proprietary metadata in the MetadataStore.- Specified by:
setOriginalMetadataPopulatedin interfaceIFormatReader- Overrides:
setOriginalMetadataPopulatedin classFormatReader
-
isOriginalMetadataPopulated
public boolean isOriginalMetadataPopulated()Description copied from interface:IFormatReaderReturns true if we should save proprietary metadata in the MetadataStore.- Specified by:
isOriginalMetadataPopulatedin interfaceIFormatReader- Overrides:
isOriginalMetadataPopulatedin classFormatReader
-
setMetadataFiltered
public void setMetadataFiltered(boolean filter) Description copied from interface:IFormatReaderSpecifies whether ugly metadata (entries with unprintable characters, and extremely large entries) should be discarded from the metadata table.- Specified by:
setMetadataFilteredin interfaceIFormatReader- Overrides:
setMetadataFilteredin classFormatReader
-
isMetadataFiltered
public boolean isMetadataFiltered()Description copied from interface:IFormatReaderReturns true if ugly metadata (entries with unprintable characters, and extremely large entries) are discarded from the metadata table.- Specified by:
isMetadataFilteredin interfaceIFormatReader- Overrides:
isMetadataFilteredin classFormatReader
-
setMetadataStore
Description copied from interface:IFormatReaderSets the default metadata store for this reader.- Specified by:
setMetadataStorein interfaceIFormatReader- Overrides:
setMetadataStorein classFormatReader- Parameters:
store- a metadata store implementation.
-
getMetadataStore
Description copied from interface:IFormatReaderRetrieves the current metadata store for this reader. You can be assured that this method will never return anullmetadata store.- Specified by:
getMetadataStorein interfaceIFormatReader- Overrides:
getMetadataStorein classFormatReader- Returns:
- A metadata store implementation.
-
hasFlattenedResolutions
public boolean hasFlattenedResolutions()Description copied from interface:IFormatReaderReturn whether or not resolution flattening is enabled.- Specified by:
hasFlattenedResolutionsin interfaceIFormatReader- Overrides:
hasFlattenedResolutionsin classFormatReader
-
setFlattenedResolutions
public void setFlattenedResolutions(boolean flattened) Description copied from interface:IFormatReaderSet whether or not to flatten resolutions into individual series.- Specified by:
setFlattenedResolutionsin interfaceIFormatReader- Overrides:
setFlattenedResolutionsin classFormatReader
-
get8BitLookupTable
Description copied from interface:IFormatReaderGets the 8-bit color lookup table associated with the most recently opened image. If no image planes have been opened, or ifIFormatReader.isIndexed()returns false, then this may return null. Also, ifIFormatReader.getPixelType()returns anything other thanFormatTools.INT8orFormatTools.UINT8, this method will return null.- Specified by:
get8BitLookupTablein interfaceIFormatReader- Overrides:
get8BitLookupTablein classWrappedReader- Throws:
FormatExceptionIOException
-
get16BitLookupTable
Description copied from interface:IFormatReaderGets the 16-bit color lookup table associated with the most recently opened image. If no image planes have been opened, or ifIFormatReader.isIndexed()returns false, then this may return null. Also, ifIFormatReader.getPixelType()returns anything other thanFormatTools.INT16orFormatTools.UINT16, this method will return null.- Specified by:
get16BitLookupTablein interfaceIFormatReader- Overrides:
get16BitLookupTablein classWrappedReader- Throws:
FormatExceptionIOException
-
getSeriesUsedFiles
Description copied from interface:IFormatReaderReturns 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.- Specified by:
getSeriesUsedFilesin interfaceIFormatReader- Overrides:
getSeriesUsedFilesin classWrappedReader
-
getUsedFiles
Description copied from interface:IFormatReaderReturns 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.- Specified by:
getUsedFilesin interfaceIFormatReader- Overrides:
getUsedFilesin classWrappedReader
-
getCoreMetadataList
Description copied from interface:IFormatReaderObtains the core metadata values for the current file.- Specified by:
getCoreMetadataListin interfaceIFormatReader- Overrides:
getCoreMetadataListin classWrappedReader
-
isSingleFile
Description copied from interface:IFormatReaderReturns true if the named file is expected to be the only file in the dataset. For single-file formats, always returns true.- Specified by:
isSingleFilein interfaceIFormatReader- Overrides:
isSingleFilein classWrappedReader- Throws:
FormatExceptionIOException
-
hasCompanionFiles
public boolean hasCompanionFiles()Description copied from interface:IFormatReaderReturns true if this format supports multi-file datasets.- Specified by:
hasCompanionFilesin interfaceIFormatReader- Overrides:
hasCompanionFilesin classWrappedReader
-
initFile
Description copied from class:FormatReaderInitializes the given file (parsing header information, etc.). Most subclasses should override this method to perform initialization operations such as parsing metadata.- Overrides:
initFilein classFormatReader- Throws:
FormatException- if a parsing error occurs processing the file.IOException- if an I/O error occurs processing the file
-