Documentation of 'org.clapper.util.io.FileOnlyFilter' Java class
FileOnlyFilter
org.clapper.util.io

Class FileOnlyFilter

  • All Implemented Interfaces:
    java.io.FileFilter


    public class FileOnlyFilter
    extends java.lang.Object
    implements java.io.FileFilter
    FileOnlyFilter implements a java.io.FileFilter that matches anything that isn't a directory. Note that the following two lines produce semantically equivalent filters:
     FileFilter f1 = new FileOnlyFilter();
     FileFilter f1 = new NotFileFilter (new DirectoryFilter());
     
    • Constructor Summary

      Constructors 
      Constructor and Description
      FileOnlyFilter() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean accept(java.io.File f)
      Determine whether the specified file is a directory or not.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileOnlyFilter

        public FileOnlyFilter()
    • Method Detail

      • accept

        public boolean accept(java.io.File f)
        Determine whether the specified file is a directory or not.
        Specified by:
        accept in interface java.io.FileFilter
        Returns:
        true if the file is a directory, false if not

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.