|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.lib.cvsclient.util.DefaultIgnoreFileFilter
public class DefaultIgnoreFileFilter
Constructor Summary | |
---|---|
DefaultIgnoreFileFilter()
|
|
DefaultIgnoreFileFilter(java.util.List patternList)
Creates new DefaultIgnoreFileFilter and fills in patterns. |
Method Summary | |
---|---|
void |
addPattern(java.lang.String pattern)
Adds a string to the list of ignore file patters using the SimpleStringPattern. |
void |
addPattern(StringPattern pattern)
Adds a StringPattern to the list of ignore file patters. |
void |
clearPatterns()
Clears the list of patters. |
static java.util.List |
parseCvsIgnoreFile(java.io.File cvsIgnoreFile)
Utility method that reads the .cvsignore file and returns a list of Strings. |
boolean |
shouldBeIgnored(java.io.File directory,
java.lang.String noneCvsFile)
A file is checked against the patterns in the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultIgnoreFileFilter()
public DefaultIgnoreFileFilter(java.util.List patternList)
patternList
- - list of objects, patterns are retrieved
via the Object.toString() method.Method Detail |
---|
public void addPattern(StringPattern pattern)
public void addPattern(java.lang.String pattern)
public void clearPatterns()
public boolean shouldBeIgnored(java.io.File directory, java.lang.String noneCvsFile)
.cvsignore
file
entry.
shouldBeIgnored
in interface IgnoreFileFilter
directory
- is a file object that refers to the directory the file resides in.noneCvsFile
- is the name of the file to be checked.public static java.util.List parseCvsIgnoreFile(java.io.File cvsIgnoreFile) throws java.io.IOException, java.io.FileNotFoundException
java.io.IOException
java.io.FileNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |