|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.io.findfile.FileScanner
public abstract class FileScanner
File scanner is a 'callback' type of files scanner.
For each founded file, method onFile(java.io.File)
is invoked.
| Field Summary | |
|---|---|
protected boolean |
includeDirs
|
protected boolean |
includeFiles
|
protected boolean |
recursive
|
| Constructor Summary | |
|---|---|
FileScanner()
|
|
| Method Summary | |
|---|---|
protected boolean |
acceptFolder(java.io.File file)
Returns true if some path has to be scanned. |
boolean |
isIncludeDirs()
|
boolean |
isIncludeFiles()
|
boolean |
isRecursive()
|
protected abstract void |
onFile(java.io.File file)
Invoked on founded file. |
protected void |
process(java.io.File file)
Processes single path. |
void |
scan(java.io.File root)
Starts files scanning for given destination root. |
void |
scan(java.lang.String string)
Starts files scanning for given destination root. |
void |
setIncludeDirs(boolean includeDirs)
Include directories in search. |
void |
setIncludeFiles(boolean includeFiles)
Include files in search. |
void |
setRecursive(boolean recursive)
Activates recursive search. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean recursive
protected boolean includeDirs
protected boolean includeFiles
| Constructor Detail |
|---|
public FileScanner()
| Method Detail |
|---|
public boolean isRecursive()
public void setRecursive(boolean recursive)
public boolean isIncludeDirs()
public void setIncludeDirs(boolean includeDirs)
public boolean isIncludeFiles()
public void setIncludeFiles(boolean includeFiles)
public void scan(java.io.File root)
public void scan(java.lang.String string)
protected void process(java.io.File file)
protected boolean acceptFolder(java.io.File file)
true if some path has to be scanned.
protected abstract void onFile(java.io.File file)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||