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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtension(String extension)
protected boolean
performOnFile(AbstractBrolWorker<Long> bgw, File file, int progressPercent, int subDirDeep)
Do something on each filevoid
setExtensions(List<String> extensions)
void
setSowDirectories(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
-true
to return also directories,false
to 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:AbstractFileParser
Do something on each file- Specified by:
performOnFile
in classAbstractFileParser<Long>
- Parameters:
bgw
-AbstractBrolWorker
to 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
-