org.apache.james.nntpserver
Class DateSinceFileFilter
java.lang.Object
|
+--org.apache.james.nntpserver.DateSinceFileFilter
- All Implemented Interfaces:
- FilenameFilter
- public class DateSinceFileFilter
- extends Object
- implements FilenameFilter
Filters files according to their last modified date
- Author:
- Harmeet Bedi
Constructor Summary |
DateSinceFileFilter(long date)
Creates a new FileFilter that returns all Files that
have been modified since the date specified. |
Method Summary |
boolean |
accept(File dir,
String name)
Tests if a specified file has been modified since a
specified date. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateSinceFileFilter
public DateSinceFileFilter(long date)
- Creates a new FileFilter that returns all Files that
have been modified since the date specified.
- Parameters:
date
- the date that serves as the lower bound of the region of
interest
accept
public boolean accept(File dir,
String name)
- Tests if a specified file has been modified since a
specified date.
- Specified by:
accept
in interface FilenameFilter
- Parameters:
dir
- the directory in which the file was foundname
- the name of the file
- Returns:
- true if the file meets the criteria, false otherwise
"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."