public class ImageMetadataInput extends SingleFileInputBase
ImageMetadata
but only lazily when first called.Constructor and Description |
---|
ImageMetadataInput(NamedFile file,
CheckedSupplier<ImageMetadata,ImageIOException> metadata)
Create for a particular file and metadata.
|
Modifier and Type | Method and Description |
---|---|
ImageMetadata |
metadata()
The associated image metadata.
|
getFile, identifier, pathForBinding, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
allAssociatedPaths, asFile, close, identifierAsPath, pathForBindingRequired
public ImageMetadataInput(NamedFile file, CheckedSupplier<ImageMetadata,ImageIOException> metadata)
file
- the file responsible for this input.metadata
- the associated image metadata.public ImageMetadata metadata() throws ImageIOException
ImageIOException
- if called when retrieving the metadata for the first time.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.