|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface used to describe the actions required by any type of directory scanner.
Method Summary | |
void |
addDefaultExcludes()
Adds an array with default exclusions to the current exclusions set. |
java.io.File |
getBasedir()
Gets the basedir that is used for scanning. |
java.lang.String[] |
getExcludedDirectories()
Get the names of the directories that matched at least one of the include patterns, an matched also at least one of the exclude patterns. |
java.lang.String[] |
getExcludedFiles()
Get the names of the files that matched at least one of the include patterns, an matched also at least one of the exclude patterns. |
java.lang.String[] |
getIncludedDirectories()
Get the names of the directories that matched at least one of the include patterns, an matched none of the exclude patterns. |
java.lang.String[] |
getIncludedFiles()
Get the names of the files that matched at least one of the include patterns, an matched none of the exclude patterns. |
java.lang.String[] |
getNotIncludedDirectories()
Get the names of the directories that matched at none of the include patterns. |
java.lang.String[] |
getNotIncludedFiles()
Get the names of the files that matched at none of the include patterns. |
void |
scan()
Scans the base directory for files that match at least one include pattern, and don't match any exclude patterns. |
void |
setBasedir(java.io.File basedir)
Sets the basedir for scanning. |
void |
setBasedir(java.lang.String basedir)
Sets the basedir for scanning. |
void |
setCaseSensitive(boolean isCaseSensitive)
Sets the case sensitivity of the file system |
void |
setExcludes(java.lang.String[] excludes)
Sets the set of exclude patterns to use. |
void |
setIncludes(java.lang.String[] includes)
Sets the set of include patterns to use. |
Method Detail |
public void addDefaultExcludes()
public java.io.File getBasedir()
public java.lang.String[] getExcludedDirectories()
public java.lang.String[] getExcludedFiles()
public java.lang.String[] getIncludedDirectories()
public java.lang.String[] getIncludedFiles()
public java.lang.String[] getNotIncludedDirectories()
public java.lang.String[] getNotIncludedFiles()
public void scan()
java.lang.IllegalStateException
- when basedir was set incorreclypublic void setBasedir(java.lang.String basedir)
basedir
- the (non-null) basedir for scanningpublic void setBasedir(java.io.File basedir)
basedir
- the basedir for scanningpublic void setExcludes(java.lang.String[] excludes)
excludes
- list of exclude patternspublic void setIncludes(java.lang.String[] includes)
includes
- list of include patternspublic void setCaseSensitive(boolean isCaseSensitive)
specifies
- if the filesystem is case sensitive
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |