| Package | Description |
|---|---|
| org.glassfish.pfl.basic.tools.file |
| Modifier and Type | Class and Description |
|---|---|
class |
Recognizer
Recognizes files according to patterns, and performs actions accordingly.
|
| Modifier and Type | Method and Description |
|---|---|
Scanner.Action |
ActionFactory.getSkipAction()
returns an action that returns true.
|
Scanner.Action |
ActionFactory.getStopAction()
returns an action that returns false.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Recognizer.addKnownName(String name,
Scanner.Action action) |
void |
Recognizer.addKnownSuffix(String suffix,
Scanner.Action action) |
boolean |
Scanner.scan(Scanner.Action action)
Scan all files reachable from roots.
|
void |
Recognizer.setDefaultAction(Scanner.Action action)
This defines the default action.
|
void |
Recognizer.setShellScriptAction(Scanner.Action action)
If set, this defines the action taken for text files that start with the
patter "#!", which is the standard for all *nix shell scripts.
|
Copyright © 2017 Oracle. All rights reserved.