public class Scanner extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Scanner.Action
Action interface passed to scan method to act on files.
|
| Constructor and Description |
|---|
Scanner(int verbose,
File... files) |
Scanner(int verbose,
List<File> files) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDirectoryToSkip(String pattern)
Add a pattern that defines a directory to skip.
|
boolean |
scan(Scanner.Action action)
Scan all files reachable from roots.
|
public Scanner(int verbose,
File... files)
public void addDirectoryToSkip(String pattern)
public boolean scan(Scanner.Action action) throws IOException
IOExceptionCopyright © 2017 Oracle. All rights reserved.