net.hblok.io
Class ParentDirectoryFileFilter
java.lang.Object
net.hblok.io.ParentDirectoryFileFilter
- All Implemented Interfaces:
- FileFilter
public class ParentDirectoryFileFilter
- extends Object
- implements FileFilter
A FileFilter which accepts files based on their parent directory being
accepted. The parent directory is accepted if the filter supplied to this
ParentDirectoryFileFilter accepts it.
- Author:
- Havard Rast Blok
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filter
protected FileFilter filter
ParentDirectoryFileFilter
public ParentDirectoryFileFilter(FileFilter filter)
accept
public boolean accept(File pathname)
- Specified by:
accept in interface FileFilter