public class FilePatternReader extends WrappedReader
| Modifier and Type | Field and Description |
|---|---|
private FileStitcher |
helper |
core, coreIndex, datasetDescription, domains, fillColor, filterMetadata, flattenedResolutions, group, hasCompanionFiles, in, indexedAsRGB, metadata, metadataStore, normalizeData, resolution, saveOriginalMetadata, series, suffixNecessary, suffixSufficient, THUMBNAIL_DIMENSIONCOMPRESSION_SUFFIXES, currentId, format, LOGGER, metadataOptions, suffixesCAN_GROUP, CANNOT_GROUP, MUST_GROUP| Constructor and Description |
|---|
FilePatternReader()
Constructs a new pattern reader.
|
| Modifier and Type | Method and Description |
|---|---|
short[][] |
get16BitLookupTable()
Gets the 16-bit color lookup table associated with
the most recently opened image.
|
byte[][] |
get8BitLookupTable()
Gets the 8-bit color lookup table associated with
the most recently opened image.
|
java.util.List<CoreMetadata> |
getCoreMetadataList()
Obtains the core metadata values for the current file.
|
protected ReaderWrapper |
getHelper()
Get the helper class that reads images
|
MetadataStore |
getMetadataStore()
Retrieves the current metadata store for this reader.
|
java.lang.String[] |
getSeriesUsedFiles(boolean noPixels)
Returns an array of filenames needed to open the current series.
|
java.lang.String[] |
getUsedFiles(boolean noPixels)
Returns an array of filenames needed to open this dataset.
|
boolean |
hasCompanionFiles()
Returns true if this format supports multi-file datasets.
|
boolean |
hasFlattenedResolutions()
Return whether or not resolution flattening is enabled.
|
protected void |
initFile(java.lang.String id)
Initializes the given file (parsing header information, etc.).
|
boolean |
isGroupFiles()
Returns true if we should group files in multi-file formats.
|
boolean |
isMetadataFiltered()
Returns true if ugly metadata (entries with unprintable characters,
and extremely large entries) are discarded from the metadata table.
|
boolean |
isNormalized()
Returns true if we should normalize float data.
|
boolean |
isOriginalMetadataPopulated()
Returns true if we should save proprietary metadata
in the MetadataStore.
|
boolean |
isSingleFile(java.lang.String id)
Returns true if the named file is expected to be the only
file in the dataset.
|
void |
setFlattenedResolutions(boolean flattened)
Set whether or not to flatten resolutions into individual series.
|
void |
setGroupFiles(boolean group)
Specifies whether or not to force grouping in multi-file formats.
|
void |
setMetadataFiltered(boolean filter)
Specifies whether ugly metadata (entries with unprintable characters,
and extremely large entries) should be discarded from the metadata table.
|
void |
setMetadataStore(MetadataStore store)
Sets the default metadata store for this reader.
|
void |
setNormalized(boolean normalize)
Specifies whether or not to normalize float data.
|
void |
setOriginalMetadataPopulated(boolean populate)
Specifies whether or not to save proprietary metadata
in the MetadataStore.
|
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, setSeriesaddGlobalMeta, 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, updateMetadataListscheckSuffix, checkSuffix, getFormat, getMetadataOptions, getSuffixes, getSupportedMetadataLevels, setMetadataOptionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormat, getSuffixesgetMetadataOptions, getSupportedMetadataLevels, setMetadataOptionsgetTileCodec, getTileCodecOptions, openCompressedBytes, openCompressedBytesprivate FileStitcher helper
protected ReaderWrapper getHelper()
WrappedReadergetHelper in class WrappedReaderpublic void setGroupFiles(boolean group)
IFormatReadersetGroupFiles in interface IFormatReadersetGroupFiles in class FormatReaderIFormatReader.fileGroupOption(String),
IFormatReader.isGroupFiles()public boolean isGroupFiles()
IFormatReaderisGroupFiles in interface IFormatReaderisGroupFiles in class FormatReaderIFormatReader.setGroupFiles(boolean),
IFormatReader.fileGroupOption(String)public void setNormalized(boolean normalize)
IFormatReadersetNormalized in interface IFormatReadersetNormalized in class FormatReaderpublic boolean isNormalized()
IFormatReaderisNormalized in interface IFormatReaderisNormalized in class FormatReaderpublic void setOriginalMetadataPopulated(boolean populate)
IFormatReadersetOriginalMetadataPopulated in interface IFormatReadersetOriginalMetadataPopulated in class FormatReaderpublic boolean isOriginalMetadataPopulated()
IFormatReaderisOriginalMetadataPopulated in interface IFormatReaderisOriginalMetadataPopulated in class FormatReaderpublic void setMetadataFiltered(boolean filter)
IFormatReadersetMetadataFiltered in interface IFormatReadersetMetadataFiltered in class FormatReaderpublic boolean isMetadataFiltered()
IFormatReaderisMetadataFiltered in interface IFormatReaderisMetadataFiltered in class FormatReaderpublic void setMetadataStore(MetadataStore store)
IFormatReadersetMetadataStore in interface IFormatReadersetMetadataStore in class FormatReaderstore - a metadata store implementation.public MetadataStore getMetadataStore()
IFormatReadernull
metadata store.getMetadataStore in interface IFormatReadergetMetadataStore in class FormatReaderpublic boolean hasFlattenedResolutions()
IFormatReaderhasFlattenedResolutions in interface IFormatReaderhasFlattenedResolutions in class FormatReaderpublic void setFlattenedResolutions(boolean flattened)
IFormatReadersetFlattenedResolutions in interface IFormatReadersetFlattenedResolutions in class FormatReaderpublic byte[][] get8BitLookupTable()
throws FormatException,
java.io.IOException
IFormatReaderIFormatReader.isIndexed() returns
false, then this may return null. Also, if IFormatReader.getPixelType() returns
anything other than FormatTools.INT8 or FormatTools.UINT8,
this method will return null.get8BitLookupTable in interface IFormatReaderget8BitLookupTable in class WrappedReaderFormatExceptionjava.io.IOExceptionpublic short[][] get16BitLookupTable()
throws FormatException,
java.io.IOException
IFormatReaderIFormatReader.isIndexed() returns
false, then this may return null. Also, if IFormatReader.getPixelType() returns
anything other than FormatTools.INT16 or FormatTools.UINT16, this method will return null.get16BitLookupTable in interface IFormatReaderget16BitLookupTable in class WrappedReaderFormatExceptionjava.io.IOExceptionpublic java.lang.String[] getSeriesUsedFiles(boolean noPixels)
IFormatReaderIFormatHandler.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 in interface IFormatReadergetSeriesUsedFiles in class WrappedReaderpublic java.lang.String[] getUsedFiles(boolean noPixels)
IFormatReaderIFormatHandler.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.getUsedFiles in interface IFormatReadergetUsedFiles in class WrappedReaderpublic java.util.List<CoreMetadata> getCoreMetadataList()
IFormatReadergetCoreMetadataList in interface IFormatReadergetCoreMetadataList in class WrappedReaderpublic boolean isSingleFile(java.lang.String id)
throws FormatException,
java.io.IOException
IFormatReaderisSingleFile in interface IFormatReaderisSingleFile in class WrappedReaderFormatExceptionjava.io.IOExceptionpublic boolean hasCompanionFiles()
IFormatReaderhasCompanionFiles in interface IFormatReaderhasCompanionFiles in class WrappedReaderprotected void initFile(java.lang.String id)
throws FormatException,
java.io.IOException
FormatReaderinitFile in class FormatReaderFormatException - if a parsing error occurs processing the file.java.io.IOException - if an I/O error occurs processing the fileCopyright © 2025 Open Microscopy Environment