net.hblok.io
Class ParentDirectoryFileFilter

java.lang.Object
  extended by 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

Field Summary
protected  FileFilter filter
           
 
Constructor Summary
ParentDirectoryFileFilter(FileFilter filter)
           
 
Method Summary
 boolean accept(File pathname)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

filter

protected FileFilter filter
Constructor Detail

ParentDirectoryFileFilter

public ParentDirectoryFileFilter(FileFilter filter)
Method Detail

accept

public boolean accept(File pathname)
Specified by:
accept in interface FileFilter