org.apache.james.nntpserver
Class DateSinceFileFilter

java.lang.Object
  extended by org.apache.james.nntpserver.DateSinceFileFilter
All Implemented Interfaces:
java.io.FilenameFilter

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

Filters files according to their last modified date


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(java.io.File dir, java.lang.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
 

Constructor Detail

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
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Tests if a specified file has been modified since a specified date.

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 the file meets the criteria, false otherwise


Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.