Class AlwaysReject

Object
AnchorBean<ImageMetadataReader>
ImageMetadataReader
AlwaysReject

public class AlwaysReject extends ImageMetadataReader
A special ImageMetadataReader that will always throw an exception and reject a file.

This can be useful for debugging errors, to identify circumstances in which a ImageMetadataReader is used or not used.

Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ImageMetadata
    openFile(Path path, StackReader defaultStackReader, OperationContext context)
     

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AlwaysReject

      public AlwaysReject()
  • Method Details

    • openFile

      public ImageMetadata openFile(Path path, StackReader defaultStackReader, OperationContext context) throws ImageIOException
      Specified by:
      openFile in class ImageMetadataReader
      Throws:
      ImageIOException