|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.etasoft.trans.io.axWildcardFileFilter
An instance of FileFilter that filters with the same wildcard patterns that MS-DOS and Windows do. The only supported characters are * (which matches zero or more characters) and ? (which matches one character).
Eg:
Constructor Summary | |
axWildcardFileFilter(java.lang.String filter)
Creates a WildcardFileFilter which doesn't allow directories in the accepted files. |
|
axWildcardFileFilter(java.lang.String filter,
boolean allow)
Creates a WildcardFileFilter with optional allowing directories in the accepted files. |
Method Summary | |
boolean |
accept(java.io.File pathname)
Tests whether or not the specified abstract pathname should be included in a pathname list. |
static boolean |
wildcardCompare(java.lang.String test,
java.lang.String pattern)
Compares two strings, one containing * and ? wildcard characters, and checks if they match. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public axWildcardFileFilter(java.lang.String filter, boolean allow)
filter
- The wildcard string to filter on.allow
- Whether to allow directories or not.public axWildcardFileFilter(java.lang.String filter)
filter
- The wildcard string to filter on.Method Detail |
public boolean accept(java.io.File pathname)
accept
in interface java.io.FileFilter
pathname
- The abstract pathname to be tested.
public static boolean wildcardCompare(java.lang.String test, java.lang.String pattern)
test
- The string to test.pattern
- The string containing wildcards to match on.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |