Class ImageMetadataReader
Object
org.anchoranalysis.bean.AnchorBean<ImageMetadataReader>
org.anchoranalysis.image.io.bean.stack.metadata.reader.ImageMetadataReader
- Direct Known Subclasses:
FromStackReader
public abstract class ImageMetadataReader extends AnchorBean<ImageMetadataReader>
Reads an
ImageMetadata from the file-system.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description ImageMetadataReader() -
Method Summary
Modifier and Type Method Description abstract ImageMetadataopenFile(Path path, StackReader defaultStackReader, OperationContext context)Opens a file containing one or more images but does not read an image.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ImageMetadataReader
public ImageMetadataReader()
-
-
Method Details
-
openFile
public abstract ImageMetadata openFile(Path path, StackReader defaultStackReader, OperationContext context) throws ImageIOExceptionOpens a file containing one or more images but does not read an image.- Parameters:
path- where the file is located.defaultStackReader- the defaultStackReaderto use, if needed, and if not otherwise specified, for reading metadata.context- context for reading a stack from the file-system.- Returns:
- an interface to the opened file that should be closed when no longer in use.
- Throws:
ImageIOException- if the file cannot be read.
-