FileDocCategorySizeDatePackage
DateSinceFileFilter.javaAPI DocApache James 2.3.12257Fri Jan 12 12:56:24 GMT 2007org.apache.james.nntpserver

DateSinceFileFilter

public class DateSinceFileFilter extends Object implements FilenameFilter
Filters files according to their last modified date

Fields Summary
private final long
m_date
The date that serves as the lower bound of the region of interest
Constructors Summary
public DateSinceFileFilter(long date)
Creates a new FileFilter that returns all Files that have been modified since the date specified.

param
date the date that serves as the lower bound of the region of interest

        m_date = date;
    
Methods Summary
public booleanaccept(java.io.File dir, java.lang.String name)
Tests if a specified file has been modified since a specified date.

param
dir the directory in which the file was found
param
name the name of the file
return
true if the file meets the criteria, false otherwise

        return (new File(dir,name).lastModified() >= m_date);