Class BranchExtension

Object
AnchorBean<StackReader>
StackReader
BranchExtension

public class BranchExtension extends 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    StringSet
    Any extensions to match (case insensitive) excluding any leading period.
    StackReader
    The reader to use if the extension matches.
    StackReader
    The reader to use if the extension does not match.
    OpenedImageFile
    openFile(Path path, ExecutionTimeRecorder executionTimeRecorder)
     
    void
    setExtensions(StringSet extensions)
    Any extensions to match (case insensitive) excluding any leading period.
    void
    setReaderMatching(StackReader readerMatching)
    The reader to use if the extension matches.
    void
    setReaderNotMatching(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

    • BranchExtension

      public BranchExtension()
  • Method Details

    • openFile

      public OpenedImageFile openFile(Path path, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException
      Specified by:
      openFile in class StackReader
      Throws:
      ImageIOException
    • getExtensions

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

      public void setExtensions(StringSet extensions)
      Any extensions to match (case insensitive) excluding any leading period.
    • getReaderMatching

      public StackReader getReaderMatching()
      The reader to use if the extension matches.
    • setReaderMatching

      public void setReaderMatching(StackReader readerMatching)
      The reader to use if the extension matches.
    • getReaderNotMatching

      public StackReader getReaderNotMatching()
      The reader to use if the extension does not match.
    • setReaderNotMatching

      public void setReaderNotMatching(StackReader readerNotMatching)
      The reader to use if the extension does not match.