public class FileFilter
extends java.lang.Object
filter profile
.
A specification is either the name of an individual file, or a path ending in an asterisk. The latter represents a wildcard filter which matches all files whose paths begin with the portion of the specification before the asterisk. The former matches at most one file.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
spec
File specification which defines the filter
|
private boolean |
wild
Flag indicating whether this filter is a wildcard vs.
|
Constructor and Description |
---|
FileFilter()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSpec()
Getter for file specification.
|
boolean |
isWild()
Getter for wildcard flag.
|
void |
setSpec(java.lang.String spec)
Setter for file specification.
|
void |
setWild(boolean wild)
Setter for wildcard flag.
|
private boolean wild
private java.lang.String spec
public boolean isWild()
True
if specification is a wildcard; false
if a single file.public void setWild(boolean wild)
wild
- True
if specification is a wildcard; false
if a single file.public java.lang.String getSpec()
public void setSpec(java.lang.String spec)
spec
- Wildcard or single file path specification which defines the filter.