org.patterncoder.util
Class PatternCodeFileFilter
java.lang.Object
org.patterncoder.util.PatternCodeFileFilter
- All Implemented Interfaces:
- java.io.FileFilter
public class PatternCodeFileFilter
- extends java.lang.Object
- implements java.io.FileFilter
A file filter class for filtering out unwanted files.
ï¼ see java.io.FileFilter
Method Summary |
boolean |
accept(java.io.File f)
Test whether a file should be accepted |
java.lang.String |
getAcceptedExt()
|
void |
setAcceptedExt(java.lang.String acceptableExt)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PatternCodeFileFilter
public PatternCodeFileFilter()
PatternCodeFileFilter
public PatternCodeFileFilter(java.lang.String acceptedExt)
accept
public boolean accept(java.io.File f)
- Test whether a file should be accepted
- Specified by:
accept
in interface java.io.FileFilter
- Parameters:
f
- a file to be tested
- Returns:
- true if the file is accepted by the filter, and false otherwise.
getAcceptedExt
public java.lang.String getAcceptedExt()
setAcceptedExt
public void setAcceptedExt(java.lang.String acceptableExt)