Class PatternFilter

  • All Implemented Interfaces:
    java.io.FileFilter

    public class PatternFilter
    extends java.lang.Object
    implements java.io.FileFilter
    File filter implementation that filters by pattern matching on the file name using regular expressions. Two patterns are specified. A file is accepted if its name matches the first pattern and does NOT _match the second pattern.
    Author:
    Evren Sirin
    • Constructor Summary

      Constructors 
      Constructor Description
      PatternFilter​(java.lang.String match)  
      PatternFilter​(java.lang.String match, java.lang.String noMatch)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.io.File file)  
      • Methods inherited from class java.lang.Object

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

      • PatternFilter

        public PatternFilter​(java.lang.String match)
      • PatternFilter

        public PatternFilter​(java.lang.String match,
                             java.lang.String noMatch)
    • Method Detail

      • accept

        public boolean accept​(java.io.File file)
        Specified by:
        accept in interface java.io.FileFilter