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 ClassesModifier and TypeClassDescriptionstatic enumfile format in which actual image bytes are stored -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.slf4j.Loggerstatic final booleanstatic final StringFields 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 TypeMethodDescriptionvoidaddSeriesMeta(String key, Object value) voidaddSeriesMetaList(String key, Object value) voidclose(boolean fileOnly) static booleanfileExists(String path) Checks if file at path existsList<loci.formats.CoreMetadata>getCore()abstract LMSFileReader.ImageFormatReturns the file format in which actual image bytes are storedloci.formats.meta.MetadataStorevoidvoidExtracts metadata from a list of Leica image XML Documents and writes them to the reader's CoreMetadata,MetadataTempBufferand MetadataStorevoidbooleanMethods 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, updateMetadataListsMethods inherited from class loci.formats.FormatHandler
checkSuffix, checkSuffix, getFormat, getMetadataOptions, getNativeDataType, 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
getTileBoundingBox, getTileCodec, getTileCodecOptions, openCompressedBytes, openCompressedBytesMethods inherited from interface loci.formats.IFormatHandler
getFormat, getNativeDataType, getSuffixesMethods inherited from interface loci.formats.IMetadataConfigurable
getMetadataOptions, getSupportedMetadataLevels, setMetadataOptions
-
Field Details
-
OLD_PHYSICAL_SIZE_KEY
- See Also:
-
OLD_PHYSICAL_SIZE_DEFAULT
public static final boolean OLD_PHYSICAL_SIZE_DEFAULT- See Also:
-
log
public static org.slf4j.Logger log -
metaTemp
-
associatedXmlDoc
-
-
Constructor Details
-
LMSFileReader
-
-
Method Details
-
close
- Specified by:
closein interfaceloci.formats.IFormatReader- Overrides:
closein classloci.formats.FormatReader- Throws:
IOException
-
getImageFormat
Returns the file format in which actual image bytes are stored -
getCore
-
setCore
-
useOldPhysicalSizeCalculation
public boolean useOldPhysicalSizeCalculation() -
addSeriesMeta
- Overrides:
addSeriesMetain classloci.formats.FormatReader
-
addSeriesMetaList
- Overrides:
addSeriesMetaListin classloci.formats.FormatReader
-
makeFilterMetadata
public loci.formats.meta.MetadataStore makeFilterMetadata()- Overrides:
makeFilterMetadatain classloci.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,MetadataTempBufferand MetadataStore- Parameters:
docs- List of document nodes representing XML documents- Throws:
loci.formats.FormatExceptionIOException
-
translateMetadata
public void translateMetadata(LMSImageXmlDocument doc) throws loci.formats.FormatException, IOException - Throws:
loci.formats.FormatExceptionIOException
-
fileExists
Checks if file at path exists- Parameters:
path- whole file path
-