Package net.sf.basedb.util
Class OlderThanFileFilter
java.lang.Object
net.sf.basedb.util.OlderThanFileFilter
- All Implemented Interfaces:
FileFilter
An implementation of the
FileFilter
interface
that filter files based on their age.- Version:
- 2.11
- Author:
- nicklas
- Last modified
- $Date: 2009-03-23 13:09:35 +0100 (må, 23 mar 2009) $
-
Field Summary
-
Constructor Summary
ConstructorDescriptionOlderThanFileFilter
(long maxAge, boolean recursive) Create a new file filter that matches files that are older than the specified age. -
Method Summary
-
Field Details
-
maxAge
private final long maxAge -
recursive
private final boolean recursive
-
-
Constructor Details
-
OlderThanFileFilter
public OlderThanFileFilter(long maxAge, boolean recursive) Create a new file filter that matches files that are older than the specified age.- Parameters:
maxAge
- The age limit (in milliseconds). Files that are older are matched by this filterrecursive
- If we should recurse into subdirectories or not
-
-
Method Details
-
accept
Accept files that are older than the specified last modified time.- Specified by:
accept
in interfaceFileFilter
-