public abstract class LMSFileReader extends FormatReader
Modifier and Type | Class and Description |
---|---|
static class |
LMSFileReader.ImageFormat
file format in which actual image bytes are stored
|
Modifier and Type | Field and Description |
---|---|
LMSXmlDocument |
associatedXmlDoc |
static org.slf4j.Logger |
log |
MetadataTempBuffer |
metaTemp |
static boolean |
OLD_PHYSICAL_SIZE_DEFAULT |
static java.lang.String |
OLD_PHYSICAL_SIZE_KEY |
core, coreIndex, datasetDescription, domains, fillColor, filterMetadata, flattenedResolutions, group, hasCompanionFiles, in, indexedAsRGB, metadata, metadataStore, normalizeData, resolution, saveOriginalMetadata, series, suffixNecessary, suffixSufficient, THUMBNAIL_DIMENSION
COMPRESSION_SUFFIXES, currentId, format, LOGGER, metadataOptions, suffixes
CAN_GROUP, CANNOT_GROUP, MUST_GROUP
Modifier | Constructor and Description |
---|---|
protected |
LMSFileReader(java.lang.String format,
java.lang.String suffix) |
Modifier and Type | Method and Description |
---|---|
void |
addSeriesMeta(java.lang.String key,
java.lang.Object value)
Adds an entry to the metadata table for the current series.
|
void |
addSeriesMetaList(java.lang.String key,
java.lang.Object value)
Add the given key/value pair to the current series metadata hashtable.
|
void |
close(boolean fileOnly)
Closes the currently open file.
|
static boolean |
fileExists(java.lang.String path)
Checks if file at path exists
|
java.util.List<CoreMetadata> |
getCore() |
abstract LMSFileReader.ImageFormat |
getImageFormat()
Returns the file format in which actual image bytes are stored
|
MetadataStore |
makeFilterMetadata()
Return a properly configured loci.formats.meta.FilterMetadata.
|
void |
setCore(java.util.ArrayList<CoreMetadata> core) |
void |
translateMetadata(java.util.List<LMSImageXmlDocument> docs)
Extracts metadata from a list of Leica image XML Documents and writes them to
the reader's CoreMetadata,
MetadataTempBuffer and MetadataStore |
void |
translateMetadata(LMSImageXmlDocument doc) |
boolean |
useOldPhysicalSizeCalculation() |
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
checkSuffix, checkSuffix, getFormat, getMetadataOptions, getNativeDataType, getSuffixes, getSupportedMetadataLevels, setMetadataOptions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFormat, getNativeDataType, getSuffixes
getMetadataOptions, getSupportedMetadataLevels, setMetadataOptions
getTileCodec, getTileCodecOptions, openCompressedBytes, openCompressedBytes
public static final java.lang.String OLD_PHYSICAL_SIZE_KEY
public static final boolean OLD_PHYSICAL_SIZE_DEFAULT
public static org.slf4j.Logger log
public MetadataTempBuffer metaTemp
public LMSXmlDocument associatedXmlDoc
protected LMSFileReader(java.lang.String format, java.lang.String suffix)
public void close(boolean fileOnly) throws java.io.IOException
IFormatReader
Closeable.close()
.close
in interface IFormatReader
close
in class FormatReader
java.io.IOException
public abstract LMSFileReader.ImageFormat getImageFormat()
public java.util.List<CoreMetadata> getCore()
public void setCore(java.util.ArrayList<CoreMetadata> core)
public boolean useOldPhysicalSizeCalculation()
public void addSeriesMeta(java.lang.String key, java.lang.Object value)
FormatReader
addSeriesMeta
in class FormatReader
public void addSeriesMetaList(java.lang.String key, java.lang.Object value)
FormatReader
addSeriesMetaList
in class FormatReader
public MetadataStore makeFilterMetadata()
FormatReader
makeFilterMetadata
in class FormatReader
public void translateMetadata(java.util.List<LMSImageXmlDocument> docs) throws FormatException, java.io.IOException
MetadataTempBuffer
and MetadataStoredocs
- List of document nodes representing XML documentsFormatException
java.io.IOException
public void translateMetadata(LMSImageXmlDocument doc) throws FormatException, java.io.IOException
FormatException
java.io.IOException
public static boolean fileExists(java.lang.String path)
path
- whole file pathCopyright © 2024 Open Microscopy Environment