org.dmonix.io.filters
Class DirectoryFilter

java.lang.Object
  extended byorg.dmonix.io.filters.DirectoryFilter
All Implemented Interfaces:
java.io.FileFilter

public class DirectoryFilter
extends java.lang.Object
implements java.io.FileFilter

A filter for sorting out directories only.

Copyright: Copyright (c) 2005

Company: dmonix.org

Version:
1.0
Author:
Peter Nerg

Constructor Summary
DirectoryFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
          The method checks if the input file is a directory or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryFilter

public DirectoryFilter()
Method Detail

accept

public boolean accept(java.io.File f)
The method checks if the input file is a directory or not.

Specified by:
accept in interface java.io.FileFilter
Parameters:
f - The file to check
Returns:
true if the input file is a directory, false otherwise


Copyright © 1998-2005 dmonix.org Peter Nerg, All Rights Reserved.