|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.enterprisedt.net.ftp.WildcardFilter
public class WildcardFilter
FileFilter that uses wildcards for matching file-names. The character '?' is used for matching single characters and the character '*' is used for matching multiple characters. On Windows, case is ignored.
| Field Summary | |
|---|---|
static java.lang.String |
cvsId
Revision control id |
static char[] |
WILDCARD_CHARS
|
| Constructor Summary | |
|---|---|
WildcardFilter(java.lang.String wildcard)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
accept(java.io.File f)
Matching method. |
boolean |
accept(java.lang.String name)
Matching method on filename only. |
boolean |
directoriesAlwaysMatch()
Returns true if directories always match, false otherwise. |
static void |
main(java.lang.String[] args)
Test harness |
void |
setDirectoriesAlwaysMatch(boolean directoriesAlwaysMatch)
Set directory matching |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String cvsId
public static char[] WILDCARD_CHARS
| Constructor Detail |
|---|
public WildcardFilter(java.lang.String wildcard)
wildcard - wildcard to use for matching| Method Detail |
|---|
public boolean accept(java.io.File f)
accept in interface java.io.FileFilterpublic boolean accept(java.lang.String name)
public boolean directoriesAlwaysMatch()
public void setDirectoriesAlwaysMatch(boolean directoriesAlwaysMatch)
directoriesAlwaysMatch - true if directories always match, false otherwisepublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||