de.jstacs.io
Class DateFileFilter
java.lang.Object
de.jstacs.io.DateFileFilter
- All Implemented Interfaces:
- FileFilter
public class DateFileFilter
- extends Object
- implements FileFilter
This class implements a FileFilter
that accepts File
s that were modified after the date that is given in the constructor.
- Author:
- Jens Keilwagen
Constructor Summary |
DateFileFilter(Date d)
Creates an instance that accepts File s that were modified after d . |
DateFileFilter(int year,
int month,
int dayOfMonth,
int hrs,
int min,
int sec)
Creates an instance that accepts File s that were modified after the given year, month, ... |
DateFileFilter
public DateFileFilter(int year,
int month,
int dayOfMonth,
int hrs,
int min,
int sec)
- Creates an instance that accepts
File
s that were modified after the given year, month, ... .
- Parameters:
year
- the yearmonth
- the monthdayOfMonth
- the day of the monthhrs
- the hoursmin
- the minutessec
- the seconds- See Also:
GregorianCalendar.GregorianCalendar(int, int, int, int, int, int)
DateFileFilter
public DateFileFilter(Date d)
- Creates an instance that accepts
File
s that were modified after d
.
- Parameters:
d
- the date used to decide whether a File
will be accepted or not
accept
public boolean accept(File f)
- Specified by:
accept
in interface FileFilter
toString
public String toString()
- Overrides:
toString
in class Object