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 SummaryConstructors
- 
Method SummaryModifier 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.FileHandleraddFile, getFiles, loadFromFile, removeFileMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Constructor Details- 
FolderHandler
 
- 
- 
Method Details- 
getRecursivepublic boolean getRecursive()Is scanning recursive- Returns:
- boolean
 
- 
setRecursivepublic void setRecursive(boolean recursive) Set recursive scanning- Parameters:
- recursive-
 
- 
getFileFilter
- 
setFileFilter
- 
iteratorDescription copied from interface:ResourceHandlerReturn an iterator for instances of type T.- Specified by:
- iteratorin interface- Iterable<T>
- Specified by:
- iteratorin interface- ResourceHandler<T>
- Overrides:
- iteratorin class- FileHandler<T>
- Returns:
- an iterator providing instances of the parameterized type
 
 
-