allensoft.javacvs.client
Class CVSIgnoreFile
java.lang.Object
|
+--allensoft.io.PatternBasedFileFilter
|
+--allensoft.javacvs.client.CVSIgnoreFile
- All Implemented Interfaces:
- java.io.FileFilter
- public class CVSIgnoreFile
- extends PatternBasedFileFilter
Defines a pattern based file filter whose patterns are taken from a file. The patterns are separated
by white space. Typically, these will be .cvsignore files in the user's home directory or directories
being recursed by an import or add command. The file is automatically reparsed when it is modified externally.
The patterns in this filter reqpresent the patterns in the file. Note that this filter accepts files only if
a pattern does not match the file. This is because the patterns specify files to be ignored.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getCVSIgnoreFile
public static CVSIgnoreFile getCVSIgnoreFile(java.io.File file)
accept
public boolean accept(java.io.File file)
- Overrides:
accept
in class PatternBasedFileFilter
removePattern
public void removePattern(java.lang.String sPattern)
- Overrides:
removePattern
in class PatternBasedFileFilter
removeAllPatterns
public void removeAllPatterns()
- Overrides:
removeAllPatterns
in class PatternBasedFileFilter
addPattern
public void addPattern(java.lang.String sPattern)
- Overrides:
addPattern
in class PatternBasedFileFilter
addPattern
public void addPattern(java.lang.String[] patterns)
getFile
public java.io.File getFile()