org.apache.solr.util
Class RegexFileFilter

java.lang.Object
  extended by org.apache.solr.util.RegexFileFilter
All Implemented Interfaces:
FileFilter

public final class RegexFileFilter
extends Object
implements FileFilter

Accepts any file whose name matches the pattern


Constructor Summary
RegexFileFilter(Pattern regex)
           
RegexFileFilter(String regex)
           
 
Method Summary
 boolean accept(File f)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegexFileFilter

public RegexFileFilter(String regex)

RegexFileFilter

public RegexFileFilter(Pattern regex)
Method Detail

accept

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.