Package com.jalios.io

Class ModifiedFileFilter

  • All Implemented Interfaces:
    java.io.FileFilter

    public class ModifiedFileFilter
    extends java.lang.Object
    implements java.io.FileFilter
    This class implements java.io.FileFilter and accepts only files modified since the given time.
    Version:
    $Revision: 133639 $
    Author:
    Olivier Dedieu
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String REVISION  
    • Constructor Summary

      Constructors 
      Constructor Description
      ModifiedFileFilter​(long mtime)
      Construct a ModifiedFileFilter which accepts only files modified since the given mtime.
      ModifiedFileFilter​(java.util.Date mdate)
      Construct a ModifiedFileFilter which accepts only files modified since the given mdate.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.io.File pathname)  
      static void main​(java.lang.String[] args)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.util.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​(java.io.File pathname)
        Specified by:
        accept in interface java.io.FileFilter
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception