public class WildcardFilter
extends java.lang.Object
implements java.io.FileFilter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cvsId
Revision control id
|
static char[] |
WILDCARD_CHARS |
Constructor and Description |
---|
WildcardFilter(java.lang.String wildcard)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
java.lang.String |
getWildcard()
Get the wildcard
|
static void |
main(java.lang.String[] args)
Test harness
|
void |
setDirectoriesAlwaysMatch(boolean directoriesAlwaysMatch)
Set directory matching
|
public static java.lang.String cvsId
public static char[] WILDCARD_CHARS
public WildcardFilter(java.lang.String wildcard)
wildcard
- wildcard to use for matchingpublic java.lang.String getWildcard()
public boolean accept(java.io.File f)
accept
in interface java.io.FileFilter
public 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)
Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.