allensoft.javacvs.client
Class CVSIgnoreFileFilter
java.lang.Object
|
+--allensoft.javacvs.client.CVSIgnoreFileFilter
- All Implemented Interfaces:
- java.io.FileFilter
- public class CVSIgnoreFileFilter
- extends java.lang.Object
- implements java.io.FileFilter
A file filter that decides if a file should be accepted based on rules for CVS
ignoring files. The patterns in this filter are the default patterns to ignore.
When determining if it should accept a file it will check these patterns as well as
looking for .cvsignore files in the user's home directory or the parent directory of the
file in question. The default patterns to ignore are retrieved from a setting called
"defaultIgnoreFiles". If this has not been set then a hard coded set of patterns will be
used instead which are common files for CVS to ignore.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CVSIgnoreFileFilter
protected CVSIgnoreFileFilter()
getInstance
public static CVSIgnoreFileFilter getInstance()
getAcceptAllFiles
public boolean getAcceptAllFiles()
setAcceptAllFiles
public void setAcceptAllFiles(boolean b)
accept
public boolean accept(java.io.File file)
- Accepts the file if it should not be ignored by CVS.
- Specified by:
accept
in interface java.io.FileFilter