|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.io.findfile.FindFile
jodd.io.findfile.WildcardFindFile
public class WildcardFindFile
FindFile that matches file names using *, ?
and, optionally, ** wildcards.
RegExpFindFile| Field Summary | |
|---|---|
protected boolean |
usePathWildcards
|
protected java.lang.String |
wildcard
|
| Fields inherited from class jodd.io.findfile.FindFile |
|---|
fileList, includeDirs, includeFiles, listSubfilesAfterFolder, recursive |
| Constructor Summary | |
|---|---|
WildcardFindFile()
|
|
WildcardFindFile(java.lang.String wildcard)
|
|
WildcardFindFile(java.lang.String wildcard,
boolean usePathWildcards)
|
|
| Method Summary | |
|---|---|
protected boolean |
acceptFile(java.io.File currentFile)
Called on each file entry (file or directory) and returns true
if file passes search criteria. |
java.lang.String |
getWildcard()
Returns the matching wildcard. |
boolean |
isUsePathWildcards()
Returns true if path wildcards are in use. |
WildcardFindFile |
setUsePathWildcards(boolean usePathWildcards)
Set path wildcard matching algorithm. |
void |
setWildcard(java.lang.String wildcard)
Sets the matching wildcard. |
| Methods inherited from class jodd.io.findfile.FindFile |
|---|
addSearchPath, isIncludeDirs, isIncludeFiles, isListSubfilesAfterFolder, isRecursive, iterator, listFiles, nextFile, searchPath, searchPath, searchPath, searchPath, searchPath, searchPath, searchPath, searchPath, setIncludeDirs, setIncludeFiles, setListSubfilesAfterFolder, setRecursive |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String wildcard
protected boolean usePathWildcards
| Constructor Detail |
|---|
public WildcardFindFile()
public WildcardFindFile(java.lang.String wildcard)
public WildcardFindFile(java.lang.String wildcard,
boolean usePathWildcards)
| Method Detail |
|---|
public java.lang.String getWildcard()
public void setWildcard(java.lang.String wildcard)
public boolean isUsePathWildcards()
true if path wildcards are in use.
public WildcardFindFile setUsePathWildcards(boolean usePathWildcards)
protected boolean acceptFile(java.io.File currentFile)
FindFiletrue
if file passes search criteria.
acceptFile in class FindFile
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||