Class SearchFilesParser
java.lang.Object
be.gaudry.model.file.AbstractFileParser<Long>
be.gaudry.model.file.renamer.parsers.SearchFilesParser
- All Implemented Interfaces:
PropertyChangeListener,EventListener
- Since:
- 1.0 23-juin-08
- Author:
- Steph GAUDRY
-
Field Summary
Fields inherited from class be.gaudry.model.file.AbstractFileParser
validPreviousProgress -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtension(String extension)protected booleanperformOnFile(AbstractBrolWorker<Long> bgw, File file, int progressPercent, int subDirDeep)Do something on each filevoidsetExtensions(List<String> extensions)voidsetSowDirectories(boolean showDirectories)Allows to retrieve also the directories by the parser.Methods inherited from class be.gaudry.model.file.AbstractFileParser
equals, finalize, getProgressMax, getStartPath, hashCode, init, isIncludeHiddenFiles, isIncludeSubFolders, isPauseProcessing, isPreCalcProgress, isPreCalculated, parse, parseFiles, performOnDirectory, propertyChange, setIncludeHiddenFiles, setIncludeSubFolders, setLanguage, setPreCalcProgress, setStartPath, togglePause
-
Constructor Details
-
SearchFilesParser
public SearchFilesParser()
-
-
Method Details
-
getExtensions
- Returns:
- the extensions
-
setExtensions
- Parameters:
extensions- the extensions to set
-
setSowDirectories
public void setSowDirectories(boolean showDirectories)Allows to retrieve also the directories by the parser.- Parameters:
showDirectories-trueto return also directories,falseto return only files.- Since:
- 0.0.12-SNAPSHOT (Feb 8 2009)
-
addExtension
-
performOnFile
protected boolean performOnFile(AbstractBrolWorker<Long> bgw, File file, int progressPercent, int subDirDeep)Description copied from class:AbstractFileParserDo something on each file- Specified by:
performOnFilein classAbstractFileParser<Long>- Parameters:
bgw-AbstractBrolWorkerto perform cancel if needed, and report progressfile- file to checkprogressPercent- Progress percentagesubDirDeep- Deep of the directory in comparison with start directory- Returns:
- true if we must stop the parsing of current directory (ie. if we have a vob file, we don't check the other files in this directory) false otherwise
-