Class ImageMetadataReader

Object
AnchorBean<ImageMetadataReader>
ImageMetadataReader
Direct Known Subclasses:
AlwaysReject, FromStackReader, InferFromHeader

public abstract class ImageMetadataReader extends AnchorBean<ImageMetadataReader>
Reads an ImageMetadata from the file-system.
Author:
Owen Feehan
  • Constructor Details

    • ImageMetadataReader

      public ImageMetadataReader()
  • Method Details

    • openFile

      public abstract ImageMetadata openFile(Path path, StackReader defaultStackReader, OperationContext context) throws ImageIOException
      Opens a file containing one or more images but does not read an image.
      Parameters:
      path - where the file is located.
      defaultStackReader - the default StackReader to 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.