Home | History | Annotate | Download | only in filefilter

Lines Matching defs:cutoff

26  * Filters files based on a cutoff time, can filter either newer

35 * long cutoff = System.currentTimeMillis() - (24 * 60 * 60 * 1000);
36 * String[] files = dir.list( new AgeFileFilter(cutoff) );
48 /** The cutoff time threshold. */
49 private final long cutoff;
55 * a certain cutoff
57 * @param cutoff the threshold age of the files
59 public AgeFileFilter(long cutoff) {
60 this(cutoff, true);
65 * of a certain cutoff.
67 * @param cutoff the threshold age of the files
68 * @param acceptOlder if true, older files (at or before the cutoff)
69 * are accepted, else newer ones (after the cutoff).
71 public AgeFileFilter(long cutoff, boolean acceptOlder) {
73 this.cutoff = cutoff;
78 * a certain cutoff date.
88 * of a certain cutoff date.
91 * @param acceptOlder if true, older files (at or before the cutoff)
92 * are accepted, else newer ones (after the cutoff).
116 * @param acceptOlder if true, older files (at or before the cutoff)
117 * are accepted, else newer ones (after the cutoff).
125 * Checks to see if the last modification of the file matches cutoff
128 * If last modification time equals cutoff and newer files are required,
130 * If last modification time equals cutoff and older files are required,
137 boolean newer = FileUtils.isFileNewer(file, cutoff);
148 return super.toString() + "(" + condition + cutoff + ")";