Class BranchExtension

Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.image.io.bean.stack.reader.StackReader>
org.anchoranalysis.image.io.bean.stack.reader.StackReader
org.anchoranalysis.plugin.io.bean.stack.reader.BranchExtension

public class BranchExtension
extends org.anchoranalysis.image.io.bean.stack.reader.StackReader
If the extension(s) of a path matches a particular value, then use a particular reader, otherwise a fallback.
Author:
Owen Feehan
  • Constructor Summary

    Constructors 
    Constructor Description
    BranchExtension()  
  • Method Summary

    Modifier and Type Method Description
    org.anchoranalysis.bean.primitive.StringSet getExtensions()
    Any extensions to match (case insensitive) excluding any leading period.
    org.anchoranalysis.image.io.bean.stack.reader.StackReader getReaderMatching()
    The reader to use if the extension matches.
    org.anchoranalysis.image.io.bean.stack.reader.StackReader getReaderNotMatching()
    The reader to use if the extension does not match.
    org.anchoranalysis.image.io.stack.input.OpenedImageFile openFile​(Path path, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder)  
    void setExtensions​(org.anchoranalysis.bean.primitive.StringSet extensions)
    Any extensions to match (case insensitive) excluding any leading period.
    void setReaderMatching​(org.anchoranalysis.image.io.bean.stack.reader.StackReader readerMatching)
    The reader to use if the extension matches.
    void setReaderNotMatching​(org.anchoranalysis.image.io.bean.stack.reader.StackReader readerNotMatching)
    The reader to use if the extension does not match.

    Methods inherited from class org.anchoranalysis.image.io.bean.stack.reader.StackReader

    readStack

    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.io.stack.input.OpenedImageFile openFile​(Path path, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder) throws org.anchoranalysis.image.io.ImageIOException
      Specified by:
      openFile in class org.anchoranalysis.image.io.bean.stack.reader.StackReader
      Throws:
      org.anchoranalysis.image.io.ImageIOException
    • getExtensions

      public org.anchoranalysis.bean.primitive.StringSet getExtensions()
      Any extensions to match (case insensitive) excluding any leading period.
    • setExtensions

      public void setExtensions​(org.anchoranalysis.bean.primitive.StringSet extensions)
      Any extensions to match (case insensitive) excluding any leading period.
    • getReaderMatching

      public org.anchoranalysis.image.io.bean.stack.reader.StackReader getReaderMatching()
      The reader to use if the extension matches.
    • setReaderMatching

      public void setReaderMatching​(org.anchoranalysis.image.io.bean.stack.reader.StackReader readerMatching)
      The reader to use if the extension matches.
    • getReaderNotMatching

      public org.anchoranalysis.image.io.bean.stack.reader.StackReader getReaderNotMatching()
      The reader to use if the extension does not match.
    • setReaderNotMatching

      public void setReaderNotMatching​(org.anchoranalysis.image.io.bean.stack.reader.StackReader readerNotMatching)
      The reader to use if the extension does not match.