Class LMSFileReader

java.lang.Object
loci.formats.FormatHandler
loci.formats.FormatReader
loci.formats.in.LeicaMicrosystemsMetadata.LMSFileReader
All Implemented Interfaces:
Closeable, AutoCloseable, loci.formats.ICompressedTileReader, loci.formats.IFormatHandler, loci.formats.IFormatReader, loci.formats.IMetadataConfigurable, loci.formats.IPyramidHandler
Direct Known Subclasses:
LOFReader, MultipleImagesReader, XLEFReader

public abstract class LMSFileReader extends loci.formats.FormatReader
This class can be extended by readers of Leica Microsystems file formats that include LASX generated XML (e.g. XLEF, LOF)
Author:
Melissa Linkert melissa at glencoesoftware.com, Constanze Wendlandt constanze.wendlandt at leica-microsystems.com
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    file format in which actual image bytes are stored
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    static org.slf4j.Logger
     
     
    static final boolean
     
    static final String
     

    Fields 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_DIMENSION

    Fields inherited from class loci.formats.FormatHandler

    COMPRESSION_SUFFIXES, currentId, format, LOGGER, metadataOptions, suffixes

    Fields inherited from interface loci.formats.IFormatReader

    CAN_GROUP, CANNOT_GROUP, MUST_GROUP
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    LMSFileReader(String format, String suffix)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    void
    close(boolean fileOnly)
     
    static boolean
    Checks if file at path exists
    List<loci.formats.CoreMetadata>
     
    Returns the file format in which actual image bytes are stored
    loci.formats.meta.MetadataStore
     
    void
    setCore(ArrayList<loci.formats.CoreMetadata> core)
     
    void
    Extracts metadata from a list of Leica image XML Documents and writes them to the reader's CoreMetadata, MetadataTempBuffer and MetadataStore
    void
     
    boolean
     

    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, close, coreIndexToSeries, fileGroupOption, flattenHashtables, get16BitLookupTable, get8BitLookupTable, getAcquisitionMode, getAdvancedSeriesUsedFiles, getAdvancedUsedFiles, getArcType, getAvailableOptions, getBinning, getBitsPerPixel, getCompression, getContrastMethod, getCoreIndex, getCoreMetadataList, getCorrection, getCurrentCore, 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, getOptimalTileHeight, getOptimalTileWidth, getPixelType, getPixelType, getPossibleDomains, getPulse, getRequiredDirectories, getResolution, getResolutionCount, getRGBChannelCount, getRotationTransform, getSeries, getSeriesCount, getSeriesMeta, getSeriesMetadata, getSeriesMetadataValue, getSeriesUsedFiles, getSeriesUsedFiles, getSizeC, getSizeT, getSizeX, getSizeY, getSizeZ, getThumbSizeX, getThumbSizeY, getTileColumns, getTileRows, getUnderlyingReaders, getUsedFiles, getUsedFiles, getZCTCoords, getZCTModuloCoords, hasCompanionFiles, hasFlattenedResolutions, initFile, isFalseColor, isGroupFiles, isIndexed, isInterleaved, isInterleaved, isLittleEndian, isMetadataComplete, isMetadataFiltered, isNormalized, isOrderCertain, isOriginalMetadataPopulated, isRGB, isSingleFile, isThisType, isThisType, isThisType, isThisType, isThumbnailSeries, isUsedFile, openBytes, openBytes, openBytes, openBytes, openPlane, openThumbBytes, readPlane, readPlane, readPlane, reopenFile, seriesToCoreIndex, setCoreIndex, setFillColor, setFlattenedResolutions, setGroupFiles, setId, setMetadataFiltered, setMetadataStore, setNormalized, setOriginalMetadataPopulated, setResolution, setSeries, 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

  • Constructor Details

    • LMSFileReader

      protected LMSFileReader(String format, String suffix)
  • Method Details

    • close

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

      public abstract LMSFileReader.ImageFormat getImageFormat()
      Returns the file format in which actual image bytes are stored
    • getCore

      public List<loci.formats.CoreMetadata> getCore()
    • setCore

      public void setCore(ArrayList<loci.formats.CoreMetadata> core)
    • useOldPhysicalSizeCalculation

      public boolean useOldPhysicalSizeCalculation()
    • addSeriesMeta

      public void addSeriesMeta(String key, Object value)
      Overrides:
      addSeriesMeta in class loci.formats.FormatReader
    • addSeriesMetaList

      public void addSeriesMetaList(String key, Object value)
      Overrides:
      addSeriesMetaList in class loci.formats.FormatReader
    • makeFilterMetadata

      public loci.formats.meta.MetadataStore makeFilterMetadata()
      Overrides:
      makeFilterMetadata in class loci.formats.FormatReader
    • translateMetadata

      public void translateMetadata(List<LMSImageXmlDocument> docs) throws loci.formats.FormatException, IOException
      Extracts metadata from a list of Leica image XML Documents and writes them to the reader's CoreMetadata, MetadataTempBuffer and MetadataStore
      Parameters:
      docs - List of document nodes representing XML documents
      Throws:
      loci.formats.FormatException
      IOException
    • translateMetadata

      public void translateMetadata(LMSImageXmlDocument doc) throws loci.formats.FormatException, IOException
      Throws:
      loci.formats.FormatException
      IOException
    • fileExists

      public static boolean fileExists(String path)
      Checks if file at path exists
      Parameters:
      path - whole file path