- All Implemented Interfaces:
public class OlderThanFileFilter extends Object implements FileFilter
An implementation of the
FileFilterinterface that filter files based on their age.
- Last modified
- $Date: 2009-03-23 13:09:35 +0100 (må, 23 mar 2009) $
Fields Modifier and Type Field Description
Constructors Constructor Description
(long maxAge, boolean recursive)Create a new file filter that matches files that are older than the specified age.
Modifier and Type Method Description
File file)(Accept files that are older than the specified last modified time.
maxAgeprivate final long maxAge
recursiveprivate final boolean recursive
OlderThanFileFilterpublic OlderThanFileFilter(long maxAge, boolean recursive)Create a new file filter that matches files that are older than the specified age.
maxAge- The age limit (in milliseconds). Files that are older are matched by this filter
recursive- If we should recurse into subdirectories or not