static class Finder.ExecFilter extends Finder.Filter
Finder.exec(String[]),
Finder.ExecJavaFilter| Modifier and Type | Field and Description |
|---|---|
private String[] |
cmd
The command to be executed including arguments
separated by space as to be passed to
Runtime.exec(String)
in order to decide whether the given file passes the filter. |
| Constructor and Description |
|---|
ExecFilter(String[] cmd)
Creates an execution filter from the given command and arguments.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
pass(File file)
The given file passes this filter,
i.e. this method returns
true
if the shell command given by cmd
succeeds according to its return value (which is then zero). |
and, not, orprivate final String[] cmd
Runtime.exec(String)
in order to decide whether the given file passes the filter.
For more information on the entries
see Finder.exec(String[]).ExecFilter(String[] cmd)
cmd - The 0th entry is the command itself and the others are arguments.
For details see Finder.exec(String[]).public boolean pass(File file)
true
if the shell command given by cmd
succeeds according to its return value (which is then zero).
Execution proceeds in the following steps:
Finder.EXEC_ARG
by the long name of file.
pass in class Finder.FilterCopyright © 2012–2018 Simuline Organization (l2r). All rights reserved.