Package loci.formats

Class WrappedReader

All Implemented Interfaces:
Closeable, AutoCloseable, ICompressedTileReader, IFormatHandler, IFormatReader, IMetadataConfigurable, IPyramidHandler
Direct Known Subclasses:
FilePatternReader

public abstract class WrappedReader extends FormatReader
Helper class for readers which wrap other readers. Some methods can only be called before initFile/setId, others can only be called after. This class assumes the helper object is only available after initFile() has been called. Instead the inherited FormatReader and IMetadataConfigurable methods are kept since the properties they set are inherited. These properties can be set on the helper class in initFile() by calling callDeferredSetters(). The following setters and corresponding getters are not passed to the helper. If you initialise the helper in the constructor instead of at runtime during initFile() you may wish to override them. - getSupportedMetadataLevels - setMetadataOptions, getMetadataOptions - setGroupFiles, isGroupFiles - setNormalized, isNormalized - setOriginalMetadataPopulated, isOriginalMetadataPopulated - setMetadataFiltered, isMetadataFiltered - setMetadataStore, getMetadataStore - setFlattenedResolutions, hasFlattenedResolutions Developer note: the list of methods are those in IMetadataConfigurable plus FormatReader methods which contain `FormatTools.assertId(currentId, false, 1)`