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 -
Method Summary
Modifier and TypeMethodDescriptionStringSetAny extensions to match (case insensitive) excluding any leading period.StackReaderThe reader to use if the extension matches.StackReaderThe reader to use if the extension does not match.OpenedImageFilevoidsetExtensions(StringSet extensions) Any extensions to match (case insensitive) excluding any leading period.voidsetReaderMatching(StackReader readerMatching) The reader to use if the extension matches.voidsetReaderNotMatching(StackReader readerNotMatching) The reader to use if the extension does not match.Methods inherited from class org.anchoranalysis.image.io.bean.stack.reader.StackReader
readStackMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
BranchExtension
public BranchExtension()
-
-
Method Details
-
openFile
public OpenedImageFile openFile(Path path, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException - Specified by:
openFilein classStackReader- 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.
-