public class DefaultIgnoreFileFilter extends java.lang.Object implements IgnoreFileFilter
Constructor and Description |
---|
DefaultIgnoreFileFilter() |
DefaultIgnoreFileFilter(java.util.List patternList)
Creates new DefaultIgnoreFileFilter and fills in patterns.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public DefaultIgnoreFileFilter()
public DefaultIgnoreFileFilter(java.util.List patternList)
patternList
- - list of objects, patterns are retrieved
via the Object.toString() method.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
Built on January 12 2013. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.