Class ImageMetadataInput
Object
SingleFileInputBase
ImageMetadataInput
- All Implemented Interfaces:
InputFromManager
An input that provides a
ImageMetadata
but only lazily when first called.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionImageMetadataInput
(NamedFile file, CheckedSupplier<ImageMetadata, ImageIOException> metadata) Create for a particular file and metadata. -
Method Summary
Methods inherited from class org.anchoranalysis.io.input.file.SingleFileInputBase
getFile, identifier, pathForBinding, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.anchoranalysis.io.input.InputFromManager
allAssociatedPaths, asFile, close, identifierAsPath, pathForBindingRequired
-
Constructor Details
-
ImageMetadataInput
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.
-