| Package | Description |
|---|---|
| eu.simuline.util |
Utility classes: very inhomogeneous.
|
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
Finder.AndFilter
One of the logical operations of filters:
Returns a filter which passes a file
iff all original filters in
Finder.AndFilter.filters do so. |
(package private) static class |
Finder.ExecFilter
Filter executing a shell command and passes the file received
if the shell command succeeds according to its return code.
|
(package private) static class |
Finder.ExecJavaFilter
Filter executing a java class implementing
Finder.Callable
which passes the file received
if the method Finder.Callable.call(File) succeeds
according to its return code. |
(package private) static class |
Finder.NameFilter
Filters files by name.
|
(package private) static class |
Finder.NegFilter
One of the logical operations of filters:
Returns a filter which passes a file
iff the original filter
Finder.NegFilter.negFilter does not. |
(package private) static class |
Finder.OrFilter
One of the logical operations of filters:
Returns a filter which passes a file
iff at least one of the original filters in
Finder.OrFilter.filters do so. |
| Modifier and Type | Field and Description |
|---|---|
static Finder.Filter |
Finder.CAN_EXEC
Filter passing the file received iff it is executable.
|
static Finder.Filter |
Finder.CAN_READ
Filter passing the file received iff it is readable.
|
static Finder.Filter |
Finder.CAN_WRITE
Filter passing the file received iff it is writable.
|
static Finder.Filter |
Finder.FALSE
A filter passing no file.
|
private Finder.Filter |
Finder.Secondary.filter
The filter to be passed
before a file is returned by
Finder.Secondary.next(). |
private Finder.Filter[] |
Finder.AndFilter.filters
This filter passes a file iff all of these pass
if invoked in the natural ordering.
|
private Finder.Filter[] |
Finder.OrFilter.filters
This filter passes a file iff at least one of of these passes
if invoked in the natural ordering.
|
static Finder.Filter |
Finder.IS_DIR
Filter passing the file received iff it is a regular file.
|
static Finder.Filter |
Finder.IS_FILE
Filter passing the file received iff it is a regular file.
|
private Finder.Filter |
Finder.NegFilter.negFilter
The filter to be negated.
|
static Finder.Filter |
Finder.TRUE
A filter passing all files.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) static Finder.Filter |
Finder.Filter.and(Finder.Filter[] filters)
Returns a filter which passes a file
iff so do all filters in
filters. |
static Finder.Filter |
Finder.execFilter(String[] cmd)
Returns a filter invoking a shell command:
just passes the files received by this finder further
if the command succeeds according to its return value.
|
static Finder.Filter |
Finder.execJavaFilter(Finder.Callable callable)
Returns a filter invoking method
Finder.Callable.call(File)
of the given callable. |
static Finder.Filter |
Finder.nameFilter(String pattern)
Returns a filter passing a file
iff its (short) names of which
match the regular expression
pattern. |
(package private) Finder.Filter |
Finder.Filter.not()
Returns a filter which passes a file
iff
filter does not. |
(package private) static Finder.Filter |
Finder.Filter.or(Finder.Filter[] filters)
Returns a filter which passes a file
iff at least one filter in
filters does so. |
| Modifier and Type | Method and Description |
|---|---|
Finder |
Finder.add(Finder.Filter filter)
Returns a finder by attachig the given filter.
|
Finder |
Finder.and(Finder.Filter[] filters)
Convenience method:
Returns a finder by attaching an and-filter.
|
(package private) static Finder.Filter |
Finder.Filter.and(Finder.Filter[] filters)
Returns a filter which passes a file
iff so do all filters in
filters. |
Finder |
Finder.not(Finder.Filter filter)
Convenience method:
Returns a finder by attaching the inverse of the given filter.
|
Finder |
Finder.or(Finder.Filter[] filters)
Convenience method:
Returns a finder by attaching an or-filter.
|
(package private) static Finder.Filter |
Finder.Filter.or(Finder.Filter[] filters)
Returns a filter which passes a file
iff at least one filter in
filters does so. |
| Constructor and Description |
|---|
AndFilter(Finder.Filter[] filters) |
NegFilter(Finder.Filter negFilter) |
OrFilter(Finder.Filter[] filters) |
Secondary(Finder encl,
Finder.Filter filter)
Create a finder receiving a stream of files from
encl
and passing them further via Finder.Secondary.next()
if they pass the filter filter. |
Copyright © 2012–2018 Simuline Organization (l2r). All rights reserved.