Class AlwaysReject

Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.image.io.bean.stack.metadata.reader.ImageMetadataReader>
org.anchoranalysis.image.io.bean.stack.metadata.reader.ImageMetadataReader
org.anchoranalysis.plugin.io.bean.metadata.reader.AlwaysReject

public class AlwaysReject
extends org.anchoranalysis.image.io.bean.stack.metadata.reader.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
    AlwaysReject()  
  • Method Summary

    Modifier and Type Method Description
    org.anchoranalysis.image.core.stack.ImageMetadata openFile​(Path path, org.anchoranalysis.image.io.bean.stack.reader.StackReader defaultStackReader, org.anchoranalysis.core.time.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

  • Method Details

    • openFile

      public org.anchoranalysis.image.core.stack.ImageMetadata openFile​(Path path, org.anchoranalysis.image.io.bean.stack.reader.StackReader defaultStackReader, org.anchoranalysis.core.time.OperationContext context) throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      openFile in class org.anchoranalysis.image.io.bean.stack.metadata.reader.ImageMetadataReader
      Throws:
      org.anchoranalysis.image.io.ImageIOException