Class MultiFileReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintSearch 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.booleanopenFile(Path filePath, ExecutionTimeRecorder executionTimeRecorder) Opens a file containing one or more images.voidsetFilePathParser(FilePathParser filePathParser) voidsetNavigateHigherDirectories(int navigateHigherDirectories) Search x number directories higher than file.voidsetRecurseSubfolders(boolean recurseSubfolders) voidsetRegExDirectory(String regExDirectory) If non-empty a regular-expression is applied to directories.voidsetRegExFile(String regExFile) If non-empty a regular-expression is applied to files.voidsetStackReader(StackReader stackReader) 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
-
MultiFileReader
public MultiFileReader()
-
-
Method Details
-
openFile
public OpenedImageFile openFile(Path filePath, ExecutionTimeRecorder executionTimeRecorder) throws ImageIOException Description copied from class:StackReaderOpens 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:
openFilein 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.
-