Class AbstractFileParser<T>
java.lang.Object
be.gaudry.model.file.renamer.parsers.AbstractFileParser<T>
- Direct Known Subclasses:
AbstractPhotoMetaParser
,NfoRenamerParser
,SimpleRenamer
- Since:
- 1.0 Sept 03, 2008
- Author:
- Steph GAUDRY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
protected void
protected void
protected int
boolean
int
rename(AbstractBrolWorker<T> bgw)
protected abstract boolean
rename(AbstractBrolWorker<T> bgw, File file, int percent)
void
setTestOnly(boolean testOnly)
-
Constructor Details
-
AbstractFileParser
public AbstractFileParser()
-
-
Method Details
-
isTestOnly
public boolean isTestOnly()- Returns:
- the testOnly
-
setTestOnly
public void setTestOnly(boolean testOnly)- Parameters:
testOnly
- true if it's just a test
-
addFile
-
clearFiles
public void clearFiles() -
rename
- Parameters:
bgw
-AbstractBrolWorker
to perform cancel if needed, and report progress- Returns:
- number of files processed
-
doBeforeParsing
protected void doBeforeParsing() -
doAfterParsing
protected void doAfterParsing() -
getProgressMax
-
getPercent
protected int getPercent() -
rename
- Parameters:
bgw
-AbstractBrolWorker
to perform cancel if needed, and report progressfile
- file to checkpercent
- Progress percentage- Returns:
- true if we must stop the parsing of current directory, false otherwise
-