| Package | Description |
|---|---|
| eu.simuline.util |
Utility classes: very inhomogeneous.
|
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
Finder.Primary
The most basic kind of finder:
Method
path(File) returns an instance of this. |
(package private) class |
Finder.PrintFilter
A filter passing all information and printing it on
Finder.PrintFilter.str. |
(package private) static class |
Finder.Secondary
A finder wrapping a
Finder.Filter. |
| Modifier and Type | Field and Description |
|---|---|
private Finder |
Finder.Secondary.encl
The source finder from which the stream of files is read.
**** this is superfluous if this is not static
|
| 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.
|
Finder |
Finder.exec(String[] cmd)
Convenience method: adds an execution filter to this finder.
|
Finder |
Finder.execJava(Finder.Callable callable)
Convenience method: adds a java execution filter to this finder.
|
Finder |
Finder.name(String pattern)
Convenience method: adds a name filter to this finder.
|
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.
|
static Finder |
Finder.path(File file)
Returns a basic finder, emitting the given file
if it exists and is accessible and, recursively,
if it is a directory all files therein.
|
Finder |
Finder.print(PrintStream str)
Adds a trivial filter passing all files received by this finder
printing their full names to
str. |
| Constructor and Description |
|---|
PrintFilter(Finder encl,
PrintStream str) |
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.