Class BaseTiffReader

java.lang.Object
loci.formats.FormatHandler
loci.formats.FormatReader
loci.formats.SubResolutionFormatReader
loci.formats.in.MinimalTiffReader
loci.formats.in.BaseTiffReader
All Implemented Interfaces:
Closeable, AutoCloseable, loci.formats.ICompressedTileReader, loci.formats.IFormatHandler, loci.formats.IFormatReader, loci.formats.IMetadataConfigurable, loci.formats.IPyramidHandler
Direct Known Subclasses:
TiffReader

public abstract class BaseTiffReader extends MinimalTiffReader
BaseTiffReader is the superclass for file format readers compatible with or derived from the TIFF 6.0 file format.
Author:
Curtis Rueden ctrueden at wisc.edu, Melissa Linkert melissa at glencoesoftware.com
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String[]
     
    protected static final org.slf4j.Logger
    Logger for this class.
    protected ome.units.quantity.Length
     
    protected ome.units.quantity.Length
     

    Fields inherited from class loci.formats.SubResolutionFormatReader

    core

    Fields inherited from class loci.formats.FormatReader

    coreIndex, datasetDescription, domains, fillColor, filterMetadata, flattenedResolutions, group, hasCompanionFiles, in, indexedAsRGB, metadata, metadataStore, normalizeData, resolution, saveOriginalMetadata, series, suffixNecessary, suffixSufficient, THUMBNAIL_DIMENSION

    Fields inherited from class loci.formats.FormatHandler

    COMPRESSION_SUFFIXES, currentId, format, metadataOptions, suffixes

    Fields inherited from interface loci.formats.IFormatReader

    CAN_GROUP, CANNOT_GROUP, MUST_GROUP
  • Constructor Summary

    Constructors
    Constructor
    Description
    BaseTiffReader(String name, String suffix)
    Constructs a new BaseTiffReader.
    BaseTiffReader(String name, String[] suffixes)
    Constructs a new BaseTiffReader.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(boolean fileOnly)
     
    static String
    getExifTagName(int tag)
     
    protected String
    Retrieves the image creation date.
    protected void
     
    protected void
    Populates the metadata hashtable and metadata store.
    protected void
    Populates the metadata store using the data parsed in initStandardMetadata() along with some further parsing done in the method itself.
    protected void
    Parses standard metadata.
    protected void
    put(String key, boolean value)
     
    protected void
    put(String key, byte value)
     
    protected void
    put(String key, char value)
     
    protected void
    put(String key, double value)
     
    protected void
    put(String key, float value)
     
    protected void
    put(String key, int value)
     
    protected void
    put(String key, long value)
     
    protected void
    put(String key, short value)
     
    protected void
    put(String key, Object value)
     
    protected void
    put(String key, IFD ifd, int tag)
     
    protected void
    putDouble(String key, IFD ifd, int tag)
     
    protected void
    putInt(String key, IFD ifd, int tag)
     
    protected void
    putString(String key, IFD ifd, int tag)
     

    Methods inherited from class loci.formats.SubResolutionFormatReader

    coreIndexToSeries, flattenHashtables, getCoreIndex, getCoreMetadataList, getCurrentCore, getResolution, getResolutionCount, getSeries, getSeriesCount, seriesToCoreIndex, setCoreIndex, setResolution, setSeries

    Methods 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, close, fileGroupOption, getAcquisitionMode, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getArcType, getAvailableOptions, getBinning, getBitsPerPixel, getCompression, getContrastMethod, getCorrection, getCurrentFile, getDatasetStructureDescription, getDetectorType, getDimensionOrder, getDimensionOrder, getDomains, getEffectiveSizeC, getExperimentType, getFilamentType, getFillColor, getFillRule, getFilterType, getFontFamily, getFontStyle, getGlobalMeta, getGlobalMetadata, getIlluminationType, getImageCount, getImmersion, getIndex, getIndex, getLaserMedium, getLaserType, getMarker, getMedium, getMetadataStore, getMetadataStoreRoot, getMetadataValue, getMicrobeamManipulationType, getMicroscopeType, getModuloC, getModuloT, getModuloZ, getNamingConvention, getPixelType, getPixelType, getPossibleDomains, getPulse, getRequiredDirectories, getRGBChannelCount, getRotationTransform, getSeriesMeta, getSeriesMetadata, getSeriesMetadataValue, getSeriesUsedFiles, getSeriesUsedFiles, getSizeC, getSizeT, getSizeX, getSizeY, getSizeZ, getTileColumns, getTileRows, getUnderlyingReaders, getUsedFiles, getUsedFiles, getZCTCoords, getZCTModuloCoords, hasCompanionFiles, hasFlattenedResolutions, isFalseColor, isGroupFiles, isIndexed, isInterleaved, isInterleaved, isLittleEndian, isMetadataComplete, isMetadataFiltered, isNormalized, isOrderCertain, isOriginalMetadataPopulated, isRGB, isSingleFile, isThisType, isThisType, isThisType, isThumbnailSeries, isUsedFile, makeFilterMetadata, openBytes, openBytes, openBytes, openPlane, readPlane, readPlane, readPlane, setFillColor, setFlattenedResolutions, setGroupFiles, setId, setMetadataFiltered, setMetadataStore, setNormalized, setOriginalMetadataPopulated, updateMetadataLists

    Methods inherited from class loci.formats.FormatHandler

    checkSuffix, checkSuffix, getFormat, getMetadataOptions, getNativeDataType, getSuffixes, getSupportedMetadataLevels, setMetadataOptions

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface loci.formats.ICompressedTileReader

    getTileBoundingBox, getTileCodec, getTileCodecOptions, openCompressedBytes, openCompressedBytes

    Methods inherited from interface loci.formats.IFormatHandler

    getFormat, getNativeDataType, getSuffixes

    Methods inherited from interface loci.formats.IMetadataConfigurable

    getMetadataOptions, getSupportedMetadataLevels, setMetadataOptions
  • Field Details

    • LOGGER

      protected static final org.slf4j.Logger LOGGER
      Logger for this class.
    • DATE_FORMATS

      public static final String[] DATE_FORMATS
    • physicalSizeX

      protected ome.units.quantity.Length physicalSizeX
    • physicalSizeY

      protected ome.units.quantity.Length physicalSizeY
  • Constructor Details

    • BaseTiffReader

      public BaseTiffReader(String name, String suffix)
      Constructs a new BaseTiffReader.
    • BaseTiffReader

      public BaseTiffReader(String name, String[] suffixes)
      Constructs a new BaseTiffReader.
  • Method Details

    • close

      public void close(boolean fileOnly) throws IOException
      Specified by:
      close in interface loci.formats.IFormatReader
      Overrides:
      close in class MinimalTiffReader
      Throws:
      IOException
    • initMetadata

      protected void initMetadata() throws loci.formats.FormatException, IOException
      Populates the metadata hashtable and metadata store.
      Throws:
      loci.formats.FormatException
      IOException
    • initStandardMetadata

      protected void initStandardMetadata() throws loci.formats.FormatException, IOException
      Parses standard metadata. NOTE: Absolutely no calls to the metadata store should be made in this method or methods that override this method. Data will be overwritten if you do so.
      Throws:
      loci.formats.FormatException
      IOException
    • initMetadataStore

      protected void initMetadataStore() throws loci.formats.FormatException
      Populates the metadata store using the data parsed in initStandardMetadata() along with some further parsing done in the method itself. All calls to the active MetadataStore should be made in this method and only in this method. This is especially important for sub-classes that override the getters for pixel set array size, etc.
      Throws:
      loci.formats.FormatException
    • getImageCreationDate

      protected String getImageCreationDate()
      Retrieves the image creation date.
      Returns:
      the image creation date.
    • put

      protected void put(String key, Object value)
    • put

      protected void put(String key, int value)
    • put

      protected void put(String key, boolean value)
    • put

      protected void put(String key, byte value)
    • put

      protected void put(String key, char value)
    • put

      protected void put(String key, double value)
    • put

      protected void put(String key, float value)
    • put

      protected void put(String key, long value)
    • put

      protected void put(String key, short value)
    • put

      protected void put(String key, IFD ifd, int tag)
    • putInt

      protected void putInt(String key, IFD ifd, int tag)
    • putString

      protected void putString(String key, IFD ifd, int tag)
    • putDouble

      protected void putDouble(String key, IFD ifd, int tag)
    • initFile

      protected void initFile(String id) throws loci.formats.FormatException, IOException
      Overrides:
      initFile in class MinimalTiffReader
      Throws:
      loci.formats.FormatException
      IOException
    • getExifTagName

      public static String getExifTagName(int tag)