mk.fsgrep.find
Class PatternFilter
java.lang.Object
mk.fsgrep.find.PatternFilter
- All Implemented Interfaces:
- java.io.FilenameFilter
public class PatternFilter
- extends java.lang.Object
- implements java.io.FilenameFilter
Filter directory contents based on the file suffix.
- Author:
- Murali Krishnan
Method Summary |
boolean |
accept(java.io.File dir,
java.lang.String name)
|
protected java.lang.String |
getPattern()
|
java.util.regex.Pattern |
getRE()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PatternFilter
public PatternFilter(java.lang.String pPattern)
getRE
public java.util.regex.Pattern getRE()
getPattern
protected java.lang.String getPattern()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
accept
public boolean accept(java.io.File dir,
java.lang.String name)
- Specified by:
accept
in interface java.io.FilenameFilter
Copyright © 2009. All Rights Reserved.