org.omegahat.Environment.IO
Class DirectoryNameFilter
java.lang.Object
|
+--org.omegahat.Environment.IO.DirectoryFilter
|
+--org.omegahat.Environment.IO.DirectoryNameFilter
- All Implemented Interfaces:
- java.io.FilenameFilter, java.io.Serializable
- public class DirectoryNameFilter
- extends DirectoryFilter
- implements java.io.Serializable
Extension of the basic DirectoryFilter
which allows particular directory names to be matched, and hence excluded or included.
- See Also:
- Serialized Form
|
Field Summary |
protected java.util.Vector |
dirnames
Collection of the names which are to be considered as constituting a match. |
|
Method Summary |
boolean |
accept(java.io.File dir,
java.lang.String name)
This is the method that determines if the specified entry within
the given directory is considered a match,
by which we mean it is a directory (and not the parent directory ..). |
java.lang.String |
addName(java.lang.String n)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dirnames
protected java.util.Vector dirnames
- Collection of the names which are to be considered as constituting a match.
DirectoryNameFilter
public DirectoryNameFilter()
DirectoryNameFilter
public DirectoryNameFilter(java.lang.String name)
DirectoryNameFilter
public DirectoryNameFilter(boolean val)
DirectoryNameFilter
public DirectoryNameFilter(java.lang.String[] name)
addName
public java.lang.String addName(java.lang.String n)
accept
public boolean accept(java.io.File dir,
java.lang.String name)
- Description copied from class:
DirectoryFilter
- This is the method that determines if the specified entry within
the given directory is considered a match,
by which we mean it is a directory (and not the parent directory
..).
- Overrides:
accept in class DirectoryFilter
- Following copied from class:
org.omegahat.Environment.IO.DirectoryFilter
- Returns:
- the value of the
accept field indicating whether the entry
should be included or excluded.