musicbox.backend.filefilters
Class DirListFilter

java.lang.Object
  extended by musicbox.backend.filefilters.DirListFilter
All Implemented Interfaces:
java.io.FilenameFilter

public class DirListFilter
extends java.lang.Object
implements java.io.FilenameFilter

Author:
Isaac Hammon

Constructor Summary
DirListFilter()
           
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
          Select only directories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirListFilter

public DirListFilter()
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Select only directories.

Specified by:
accept in interface java.io.FilenameFilter
Parameters:
dir - The directory in which the file was found.
name - The name of the file
Returns:
true if and only if the name should be included in the file list; false otherwise.