Uses of Class
eu.simuline.util.Finder.Filter
-
Packages that use Finder.Filter Package Description eu.simuline.util Utility classes: very inhomogeneous. -
-
Uses of Finder.Filter in eu.simuline.util
Subclasses of Finder.Filter in eu.simuline.util Modifier and Type Class Description (package private) static classFinder.AndFilterOne of the logical operations of filters: Returns a filter which passes a file iff all original filters inFinder.AndFilter.filtersdo so.(package private) static classFinder.ExecFilterFilter executing a shell command and passes the file received if the shell command succeeds according to its return code.(package private) static classFinder.ExecJavaFilterFilter executing a java class implementingFinder.Callablewhich passes the file received if the methodFinder.Callable.call(File)succeeds according to its return code.(package private) static classFinder.NameFilterFilters files by name.(package private) static classFinder.NegFilterOne of the logical operations of filters: Returns a filter which passes a file iff the original filterFinder.NegFilter.tbNegFilterdoes not.(package private) static classFinder.OrFilterOne of the logical operations of filters: Returns a filter which passes a file iff at least one of the original filters inFinder.OrFilter.filtersdo so.Fields in eu.simuline.util declared as Finder.Filter Modifier and Type Field Description static Finder.FilterFinder. CAN_EXECFilter passing the file received iff it is executable.static Finder.FilterFinder. CAN_READFilter passing the file received iff it is readable.static Finder.FilterFinder. CAN_WRITEFilter passing the file received iff it is writable.static Finder.FilterFinder. FALSEA filter passing no file.private Finder.FilterFinder.Secondary. filterThe filter to be passed before a file is returned byFinder.Secondary.next().private Finder.Filter[]Finder.AndFilter. filtersThis filter passes a file iff all of these pass if invoked in the natural ordering.private Finder.Filter[]Finder.OrFilter. filtersThis filter passes a file iff at least one of of these passes if invoked in the natural ordering.static Finder.FilterFinder. IS_DIRFilter passing the file received iff it is a regular file.static Finder.FilterFinder. IS_FILEFilter passing the file received iff it is a regular file.private Finder.FilterFinder.NegFilter. tbNegFilterThe filter to be negated.static Finder.FilterFinder. TRUEA filter passing all files.Methods in eu.simuline.util that return Finder.Filter Modifier and Type Method Description (package private) static Finder.FilterFinder.Filter. and(Finder.Filter[] filters)Returns a filter which passes a file iff so do all filters infilters.static Finder.FilterFinder. execFilter(java.lang.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.FilterFinder. execJavaFilter(Finder.Callable callable)Returns a filter invoking methodFinder.Callable.call(File)of the givencallable.static Finder.FilterFinder. nameFilter(java.lang.String pattern)Returns a filter passing a file iff its (short) names of which match the regular expressionpattern.(package private) Finder.FilterFinder.Filter. not()Returns a filter which passes a file ifffilterdoes not.(package private) static Finder.FilterFinder.Filter. or(Finder.Filter[] filters)Returns a filter which passes a file iff at least one filter infiltersdoes so.Methods in eu.simuline.util with parameters of type Finder.Filter Modifier and Type Method Description FinderFinder. add(Finder.Filter filter)Returns a finder by attachig the given filter.FinderFinder. and(Finder.Filter[] filters)Convenience method: Returns a finder by attaching an and-filter.(package private) static Finder.FilterFinder.Filter. and(Finder.Filter[] filters)Returns a filter which passes a file iff so do all filters infilters.FinderFinder. not(Finder.Filter filter)Convenience method: Returns a finder by attaching the inverse of the given filter.(package private) static Finder.FilterFinder.Filter. or(Finder.Filter[] filters)Returns a filter which passes a file iff at least one filter infiltersdoes so.FinderFinder. or(Finder.Filter[] filters)Convenience method: Returns a finder by attaching an or-filter.Constructors in eu.simuline.util with parameters of type Finder.Filter Constructor Description AndFilter(Finder.Filter[] filters)NegFilter(Finder.Filter tbNegFilter)OrFilter(Finder.Filter[] filters)Secondary(Finder encl, Finder.Filter filter)Create a finder receiving a stream of files fromencland passing them further viaFinder.Secondary.next()if they pass the filterfilter.
-