Class FolderHandler<T>
java.lang.Object
ca.phon.util.resources.FileHandler<T>
ca.phon.util.resources.FolderHandler<T>
- All Implemented Interfaces:
ResourceHandler<T>,Iterable<T>
- Direct Known Subclasses:
UserAnalysisHandler,UserFolderScriptHandler,UserMacroHandler,UserReportHandler
Scans a folder for files. Scanning can be recursive and
use a filter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the current file filterbooleanIs scanning recursiveiterator()Return an iterator for instances of type T.voidsetFileFilter(FileFilter filter) Set file filtervoidsetRecursive(boolean recursive) Set recursive scanningMethods inherited from class ca.phon.util.resources.FileHandler
addFile, getFiles, loadFromFile, removeFileMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
FolderHandler
-
-
Method Details
-
getRecursive
public boolean getRecursive()Is scanning recursive- Returns:
- boolean
-
setRecursive
public void setRecursive(boolean recursive) Set recursive scanning- Parameters:
recursive-
-
getFileFilter
-
setFileFilter
-
iterator
Description copied from interface:ResourceHandlerReturn an iterator for instances of type T.- Specified by:
iteratorin interfaceIterable<T>- Specified by:
iteratorin interfaceResourceHandler<T>- Overrides:
iteratorin classFileHandler<T>- Returns:
- an iterator providing instances of the parameterized type
-