bb.io.filefilter
Class DirectoryFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by bb.io.filefilter.BaseFilter
          extended by bb.io.filefilter.DirectoryFilter
All Implemented Interfaces:
FileFilter

public class DirectoryFilter
extends BaseFilter

File filter that accepts directories.

Specificly, this file filter accepts every directory. Normal files and other file system elements are always rejected.

This class is multithread safe: it is immutable. In particular, it has no listener (see the ancestor class javadocs for more discussion).

Author:
Brent Boyer

Nested Class Summary
 
Nested classes/interfaces inherited from class bb.io.filefilter.BaseFilter
BaseFilter.UnitTest
 
Constructor Summary
DirectoryFilter()
          Constructs a new DirectoryFilter instance.
 
Method Summary
 String getDescription()
          
 
Methods inherited from class bb.io.filefilter.BaseFilter
accept, acceptImpl, extractPart, getDirectoryMode, getFileMode, getListener, getOtherMode, getPartMode, passesTest, passesTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryFilter

public DirectoryFilter()
Constructs a new DirectoryFilter instance.

Method Detail

getDescription

public String getDescription()
Description copied from class: BaseFilter

Specified by:
getDescription in class BaseFilter