|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.FileTree.NameFilter
public static class FileTree.NameFilter
A file filter that accepts file names and extensions. Patterns supported ------------------------------ any zero or more characters ? any one character c character c
| Field Summary | |
|---|---|
private boolean |
dodirs
If true, we accept dirs even if name does not match. |
private String |
name
The name pattern consists of '*', '?', and regular chars. |
| Constructor Summary | |
|---|---|
FileTree.NameFilter(String n)
Construct a new file name filter, specifiying patterns for the file name and the extension. |
|
FileTree.NameFilter(String n,
boolean dirs)
Construct a new file name filter, specifiying patterns for the file name and the extension. |
|
| Method Summary | |
|---|---|
boolean |
accept(File c)
Takes the file name and the file extension and matches it against the patterns. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private String name
private boolean dodirs
| Constructor Detail |
|---|
public FileTree.NameFilter(String n)
public FileTree.NameFilter(String n,
boolean dirs)
| Method Detail |
|---|
public boolean accept(File c)
accept in interface FileFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||