Class ImageMetadataInput
Object
org.anchoranalysis.io.input.file.SingleFileInputBase
org.anchoranalysis.image.io.stack.input.ImageMetadataInput
- All Implemented Interfaces:
InputFromManager
public class ImageMetadataInput extends SingleFileInputBase
An input that provides a
ImageMetadata but only lazily when first called.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ImageMetadataInput(NamedFile file, CheckedSupplier<ImageMetadata,ImageIOException> metadata)Create for a particular file and metadata. -
Method Summary
Modifier and Type Method Description ImageMetadatametadata()The associated image metadata.Methods inherited from class org.anchoranalysis.io.input.file.SingleFileInputBase
getFile, identifier, pathForBinding, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.anchoranalysis.io.input.InputFromManager
allAssociatedPaths, asFile, close, identifierAsPath, pathForBindingRequired
-
Constructor Details
-
ImageMetadataInput
public ImageMetadataInput(NamedFile file, CheckedSupplier<ImageMetadata,ImageIOException> metadata)Create for a particular file and metadata.- Parameters:
file- the file responsible for this input.metadata- the associated image metadata.
-
-
Method Details
-
metadata
The associated image metadata.- Returns:
- the metadata.
- Throws:
ImageIOException- if called when retrieving the metadata for the first time.
-