| Modifier and Type | Class and Description |
|---|---|
| public static interface | Scanner.
References Deprecated
Action interface passed to scan method to act on files.
UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.
|
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private final List | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private boolean | doScan(final File file, final Scanner.
References Deprecated
Scanner.Action is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private boolean | |
| public boolean | scan(final Scanner.
References Deprecated
Scanner.Action is deprecated or references (maybe indirectly) at least one deprecated element.
Scan all files reachable from roots. |
| private boolean |
| patternsToSkip | back to summary |
|---|---|
| private List<String> patternsToSkip | |
| roots | back to summary |
|---|---|
| private final List<File> roots | |
| verbose | back to summary |
|---|---|
| private final int verbose | |
| Scanner | back to summary |
|---|---|
| public Scanner(int verbose, final List<File> files) | |
| Scanner | back to summary |
|---|---|
| public Scanner(final int verbose, final File... files) | |
| addDirectoryToSkip | back to summary |
|---|---|
| public void addDirectoryToSkip(final String pattern) Add a pattern that defines a directory to skip. We only need really simple patterns: just a single name that must match a component of a directory name exactly. | |
| doScan | back to summary |
|---|---|
| private boolean doScan(final File file, final Scanner. References Deprecated
See corresponding docs for further information. | |
| match | back to summary |
|---|---|
| private boolean match(final String pattern, final String fname) | |
| scan | back to summary |
|---|---|
| public boolean scan(final Scanner. References Deprecated
See corresponding docs for further information. Scan all files reachable from roots. Does a depth-first search. Ignores all directories (and their contents) that match an entry in patternsToSkip. Passes each file (not directories) to the action. If action returns false, scan terminates. The result of the scan is the result of the last action call. | |
| skipDirectory | back to summary |
|---|---|
| private boolean skipDirectory(final File file) | |
References Deprecated
UnaryPredicate is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.