com.jalios.io
Class ModifiedFileFilter

java.lang.Object
  extended by com.jalios.io.ModifiedFileFilter
All Implemented Interfaces:
FileFilter

public class ModifiedFileFilter
extends Object
implements FileFilter

This class implements java.io.FileFilter and accepts only files modified since the given time.

Version:
$Revision: 14756 $
Author:
Olivier Dedieu

Field Summary
static String REVISION
           
 
Constructor Summary
ModifiedFileFilter(Date mdate)
          Construct a ModifiedFileFilter which accepts only files modified since the given mdate.
ModifiedFileFilter(long mtime)
          Construct a ModifiedFileFilter which accepts only files modified since the given mtime.
 
Method Summary
 boolean accept(File pathname)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

ModifiedFileFilter

public ModifiedFileFilter(long mtime)
Construct a ModifiedFileFilter which accepts only files modified since the given mtime.

Parameters:
mtime - the modified time

ModifiedFileFilter

public ModifiedFileFilter(Date mdate)
Construct a ModifiedFileFilter which accepts only files modified since the given mdate.

Parameters:
mdate - the modified date
Method Detail

accept

public boolean accept(File pathname)
Specified by:
accept in interface FileFilter

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2001-2010 Jalios SA. All Rights Reserved.