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.StringSetgetExtensions()Any extensions to match (case insensitive) excluding any leading period.org.anchoranalysis.image.io.bean.stack.reader.StackReadergetReaderMatching()The reader to use if the extension matches.org.anchoranalysis.image.io.bean.stack.reader.StackReadergetReaderNotMatching()The reader to use if the extension does not match.org.anchoranalysis.image.io.stack.input.OpenedImageFileopenFile(Path path, org.anchoranalysis.core.time.ExecutionTimeRecorder executionTimeRecorder)voidsetExtensions(org.anchoranalysis.bean.primitive.StringSet extensions)Any extensions to match (case insensitive) excluding any leading period.voidsetReaderMatching(org.anchoranalysis.image.io.bean.stack.reader.StackReader readerMatching)The reader to use if the extension matches.voidsetReaderNotMatching(org.anchoranalysis.image.io.bean.stack.reader.StackReader readerNotMatching)The reader to use if the extension does not match.
-
Constructor Details
-
BranchExtension
public BranchExtension()
-
-
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:
openFilein classorg.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.
-