Class LMSFileReader
java.lang.Object
loci.formats.FormatHandler
loci.formats.FormatReader
loci.formats.in.LeicaMicrosystemsMetadata.LMSFileReader
- All Implemented Interfaces:
Closeable,AutoCloseable,ICompressedTileReader,IFormatHandler,IFormatReader,IMetadataConfigurable,IPyramidHandler
- Direct Known Subclasses:
LOFReader,MultipleImagesReader,XLEFReader
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) Adds an entry to the metadata table for the current series.voidaddSeriesMetaList(String key, Object value) Add the given key/value pair to the current series metadata hashtable.voidclose(boolean fileOnly) Closes the currently open file.static booleanfileExists(String path) Checks if file at path existsgetCore()abstract LMSFileReader.ImageFormatReturns the file format in which actual image bytes are storedReturn a properly configured loci.formats.meta.FilterMetadata.voidsetCore(ArrayList<CoreMetadata> core) voidExtracts 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
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
Description copied from interface:IFormatReaderCloses the currently open file. If the flag is set, this is all that happens; if unset, it is equivalent to callingCloseable.close().- Specified by:
closein interfaceIFormatReader- Overrides:
closein classFormatReader- Throws:
IOException
-
getImageFormat
Returns the file format in which actual image bytes are stored -
getCore
-
setCore
-
useOldPhysicalSizeCalculation
public boolean useOldPhysicalSizeCalculation() -
addSeriesMeta
Description copied from class:FormatReaderAdds an entry to the metadata table for the current series.- Overrides:
addSeriesMetain classFormatReader
-
addSeriesMetaList
Description copied from class:FormatReaderAdd the given key/value pair to the current series metadata hashtable. If the key already exists, a list will be stored in the hashtable and the value will be appended to the list.- Overrides:
addSeriesMetaListin classFormatReader
-
makeFilterMetadata
Description copied from class:FormatReaderReturn a properly configured loci.formats.meta.FilterMetadata.- Overrides:
makeFilterMetadatain classFormatReader
-
translateMetadata
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:
FormatExceptionIOException
-
translateMetadata
- Throws:
FormatExceptionIOException
-
fileExists
Checks if file at path exists- Parameters:
path- whole file path
-