Class MultiFileReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Search x number directories higher than file.If non-empty a regular-expression is applied to directories.If non-empty a regular-expression is applied to files.boolean
openFile
(Path filePath, ExecutionTimeRecorder executionTimeRecorder) Opens a file containing one or more images.void
setFilePathParser
(FilePathParser filePathParser) void
setNavigateHigherDirectories
(int navigateHigherDirectories) Search x number directories higher than file.void
setRecurseSubfolders
(boolean recurseSubfolders) void
setRegExDirectory
(String regExDirectory) If non-empty a regular-expression is applied to directories.void
setRegExFile
(String regExFile) If non-empty a regular-expression is applied to files.void
setStackReader
(StackReader stackReader) 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
-
Constructor Details
-
MultiFileReader
public MultiFileReader()
-
-
Method Details
-
openFile
public OpenedImageFile openFile(Path filePath, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException Description copied from class:StackReader
Opens a file containing one or more images.This method should run as computationally quicky as possible. Image voxels should not yet be read.
- Specified by:
openFile
in classStackReader
- Parameters:
filePath
- where the file is located.executionTimeRecorder
- records the execution-times of certain operations.- Returns:
- an interface to the opened file that should be closed when no longer in use.
- Throws:
ImageIOException
- if the file cannot be read.
-
getFilePathParser
-
setFilePathParser
-
getStackReader
-
setStackReader
-
isRecurseSubfolders
public boolean isRecurseSubfolders() -
setRecurseSubfolders
public void setRecurseSubfolders(boolean recurseSubfolders) -
getRegExFile
If non-empty a regular-expression is applied to files. -
setRegExFile
If non-empty a regular-expression is applied to files. -
getRegExDirectory
If non-empty a regular-expression is applied to directories. -
setRegExDirectory
If non-empty a regular-expression is applied to directories.
-