de.unikassel.android.sdcframework.util
Class FileMatcherFilter

Package class diagram package FileMatcherFilter
java.lang.Object
  extended by de.unikassel.android.sdcframework.util.FileMatcherFilter
All Implemented Interfaces:
FilenameFilter

public class FileMatcherFilter
extends Object
implements FilenameFilter

A file name filter using a matcher for regular filename expressions.


Field Summary
private  Pattern pattern
          The pattern.
 
Constructor Summary
FileMatcherFilter(String pattern)
          Constructor
 
Method Summary
 boolean accept(File dir, String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pattern

private final Pattern pattern
The pattern.

Constructor Detail

FileMatcherFilter

public FileMatcherFilter(String pattern)
Constructor

Parameters:
pattern -
Method Detail

accept

public boolean accept(File dir,
                      String name)
Specified by:
accept in interface FilenameFilter