public final class FindFactory extends Object implements Find.Interface<FindCommand>
find
command returning
a new command instance from every signature method.Modifier and Type | Field and Description |
---|---|
static FindFactory |
INSTANCE
The singleton instance of this factory.
|
Modifier and Type | Method and Description |
---|---|
FindCommand |
find(FindOptions options,
Date time)
Finds all files that have been created, modified or accessed before
or after the specified
time (depending on the given
-time... options). |
FindCommand |
find(FindOptions options,
Date time,
String name)
Finds all files matching the given
name that have been
created, modified or accessed before or after the specified
time (depending on the given -time... options). |
FindCommand |
find(FindOptions options,
long size)
Finds all files matching the specified file
size in or below
the user's current working directory and writes the file names to
the standard output. |
FindCommand |
find(FindOptions options,
long size,
Date time,
String name)
Finds all files matching the given
name and size and
have been created, modified or accessed before or after the specified
time (depending on the given -time... options). |
FindCommand |
find(FindOptions options,
long size,
String name)
Finds all files matching the specified file
name and
size in or below the user's current working directory and
writes the file names to the standard output. |
FindCommand |
find(FindOptions options,
String name)
Finds all files matching the specified
name in or below the
user's current working directory and writes the file names to the
standard output. |
FindCommand |
find(FindOptions options,
String path,
Date time)
Finds all files that have been created, modified or accessed before
or after the specified
time (depending on the given
-time... options). |
FindCommand |
find(FindOptions options,
String path,
Date time,
String name)
Finds all files matching the given
name that have been
created, modified or accessed before or after the specified
time (depending on the given -time... options). |
FindCommand |
find(FindOptions options,
String path,
long size)
Finds all files matching the specified file
size in or below
the directory specified by path and writes the file names
to the standard output. |
FindCommand |
find(FindOptions options,
String path,
long size,
Date time,
String name)
Finds all files matching the given
name and size and
have been created, modified or accessed before or after the specified
time (depending on the given -time... options). |
FindCommand |
find(FindOptions options,
String path,
long size,
String name)
Finds all files matching the specified file
name and
size in or below the directory specified by path
and writes the file names to the standard output. |
FindCommand |
find(FindOptions options,
String path,
String name)
Finds all files matching the specified
name in or below the
directory specified by path and writes the file names to
the standard output. |
FindCommand |
find(long size)
Finds all files matching the specified file
size in or below
the user's current working directory and writes the file names to
the standard output. |
FindCommand |
find(long size,
String name)
Finds all files matching the specified file
name and
size in or below the user's current working directory and
writes the file names to the standard output. |
FindCommand |
find(String... args)
Finds all files matching the search criteria specified by the given
arguments and writes the file names to the standard output.
|
FindCommand |
find(String path)
Finds all files in or below the directory specified by
path
and writes the file names to the standard output. |
FindCommand |
find(String path,
long size)
Finds all files matching the specified file
size in or below
the directory specified by path and writes the file names
to the standard output. |
FindCommand |
find(String path,
long size,
String name)
Finds all files matching the specified file
name and
size in or below the directory specified by path
and writes the file names to the standard output. |
FindCommand |
find(String path,
String name)
Finds all files matching the specified
name in or below the
directory specified by path and writes the file names to
the standard output. |
public static final FindFactory INSTANCE
public FindCommand find(String... args)
Find.Interface
Options can be specified by acronym (with a leading dash "-") or by long name (with two leading dashes "--"). Operands other than the default "--name" operand have to be prefixed with the operand name.
The files names written to the output are relative paths referring
to the working directory (or -- if provided -- relative to the path
given after the "--path"
operand name).
find
in interface Find.Interface<FindCommand>
args
- String arguments defining the options and operands for the command.
Options can be specified by acronym (with a leading dash "-") or by
long name (with two leading dashes "--"). Operands other than the
default "--path" operand have to be prefixed with the operand name
(e.g. "--name" for subsequent path operand values).<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(String path)
Find.Interface
path
and writes the file names to the standard output.
The files names written to the output are paths relative to the
specified path
operand.
find
in interface Find.Interface<FindCommand>
path
- Starting point for the search in the directory hierarchy;
wildcards * and ? are supported; relative paths are resolved on the
basis of the current working directory.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(String path, String name)
Find.Interface
name
in or below the
directory specified by path
and writes the file names to
the standard output.
The files names written to the output are paths relative to the
specified path
operand.
find
in interface Find.Interface<FindCommand>
path
- Starting point for the search in the directory hierarchy;
wildcards * and ? are supported; relative paths are resolved on the
basis of the current working directory.name
- Name pattern to match the file name after removing the path with the
leading directories; wildcards * and ? are supported, or full
regular expressions if either of the options -regex (-r)
or
-iregex (-i)
is specified.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(long size)
Find.Interface
size
in or below
the user's current working directory and writes the file names to
the standard output. Matching files use at least size
bytes
on disk if size
is positive, or at most abs(size)
bytes if size
is zero or negative.
The files names written to the output are relative paths referring to the working directory.
find
in interface Find.Interface<FindCommand>
size
- Consider only files using at least size
bytes if size
is positive, or at most abs(size)
bytes if size
is zero
or negative.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(String path, long size)
Find.Interface
size
in or below
the directory specified by path
and writes the file names
to the standard output. Matching files use at least size
bytes on disk if size
is positive, or at most
abs(size)
bytes if size
is zero or negative.
The files names written to the output are paths relative to the
specified path
operand.
find
in interface Find.Interface<FindCommand>
path
- Starting point for the search in the directory hierarchy;
wildcards * and ? are supported; relative paths are resolved on the
basis of the current working directory.size
- Consider only files using at least size
bytes if size
is positive, or at most abs(size)
bytes if size
is zero
or negative.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(long size, String name)
Find.Interface
name
and
size
in or below the user's current working directory and
writes the file names to the standard output. Matching files use
at least size
bytes on disk if size
is positive,
or at most abs(size)
bytes if size
is zero or
negative.
The files names written to the output are relative paths referring to the working directory.
find
in interface Find.Interface<FindCommand>
size
- Consider only files using at least size
bytes if size
is positive, or at most abs(size)
bytes if size
is zero
or negative.name
- Name pattern to match the file name after removing the path with the
leading directories; wildcards * and ? are supported, or full
regular expressions if either of the options -regex (-r)
or
-iregex (-i)
is specified.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(String path, long size, String name)
Find.Interface
name
and
size
in or below the directory specified by path
and writes the file names to the standard output. Matching files
use at least size
bytes on disk if size
is positive,
or at most abs(size)
bytes if size
is zero or
negative.
The files names written to the output are paths relative to the
specified path
operand.
find
in interface Find.Interface<FindCommand>
path
- Starting point for the search in the directory hierarchy;
wildcards * and ? are supported; relative paths are resolved on the
basis of the current working directory.size
- Consider only files using at least size
bytes if size
is positive, or at most abs(size)
bytes if size
is zero
or negative.name
- Name pattern to match the file name after removing the path with the
leading directories; wildcards * and ? are supported, or full
regular expressions if either of the options -regex (-r)
or
-iregex (-i)
is specified.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(FindOptions options, String name)
Find.Interface
name
in or below the
user's current working directory and writes the file names to the
standard output.
The files names written to the output are relative paths referring to the working directory.
find
in interface Find.Interface<FindCommand>
options
- Options for the file search.name
- Name pattern to match the file name after removing the path with the
leading directories; wildcards * and ? are supported, or full
regular expressions if either of the options -regex (-r)
or
-iregex (-i)
is specified.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(FindOptions options, String path, String name)
Find.Interface
name
in or below the
directory specified by path
and writes the file names to
the standard output.
The files names written to the output are paths relative to the
specified path
operand.
find
in interface Find.Interface<FindCommand>
options
- Options for the file search.path
- Starting point for the search in the directory hierarchy;
wildcards * and ? are supported; relative paths are resolved on the
basis of the current working directory.name
- Name pattern to match the file name after removing the path with the
leading directories; wildcards * and ? are supported, or full
regular expressions if either of the options -regex (-r)
or
-iregex (-i)
is specified.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(FindOptions options, long size)
Find.Interface
size
in or below
the user's current working directory and writes the file names to
the standard output. Matching files use at least size
bytes
on disk if size
is positive, or at most abs(size)
bytes if size
is zero or negative.
The files names written to the output are relative paths referring to the working directory.
find
in interface Find.Interface<FindCommand>
options
- Options for the file search.size
- Consider only files using at least size
bytes if size
is positive, or at most abs(size)
bytes if size
is zero
or negative.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(FindOptions options, String path, long size)
Find.Interface
size
in or below
the directory specified by path
and writes the file names
to the standard output. Matching files use at least size
bytes on disk if size
is positive, or at most
abs(size)
bytes if size
is zero or negative.
The files names written to the output are paths relative to the
specified path
operand.
find
in interface Find.Interface<FindCommand>
options
- Options for the file search.path
- Starting point for the search in the directory hierarchy;
wildcards * and ? are supported; relative paths are resolved on the
basis of the current working directory.size
- Consider only files using at least size
bytes if size
is positive, or at most abs(size)
bytes if size
is zero
or negative.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(FindOptions options, Date time)
Find.Interface
time
(depending on the given
-time...
options). The names of the matching files found in
or below the user's current working directory are written to the
standard output.
The files names written to the output are relative paths referring to the working directory.
find
in interface Find.Interface<FindCommand>
options
- Options for the file search.time
- Consider only files that have been created, modified or accessed
before or after the specified time
operand; consider the
-time...
options for details of the comparison.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(FindOptions options, String path, Date time)
Find.Interface
time
(depending on the given
-time...
options). The names of the matching files found in
or below the directory specified by path
are written to
the standard output.
The files names written to the output are paths relative to the
specified path
operand.
find
in interface Find.Interface<FindCommand>
options
- Options for the file search.path
- Starting point for the search in the directory hierarchy;
wildcards * and ? are supported; relative paths are resolved on the
basis of the current working directory.time
- Consider only files that have been created, modified or accessed
before or after the specified time
operand; consider the
-time...
options for details of the comparison.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(FindOptions options, long size, String name)
Find.Interface
name
and
size
in or below the user's current working directory and
writes the file names to the standard output. Matching files use
at least size
bytes on disk if size
is positive, or
at most abs(size)
bytes if size
is zero or negative.
The files names written to the output are relative paths referring to the working directory.
find
in interface Find.Interface<FindCommand>
options
- Options for the file search.size
- Consider only files using at least size
bytes if size
is positive, or at most abs(size)
bytes if size
is zero
or negative.name
- Name pattern to match the file name after removing the path with the
leading directories; wildcards * and ? are supported, or full
regular expressions if either of the options -regex (-r)
or
-iregex (-i)
is specified.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(FindOptions options, String path, long size, String name)
Find.Interface
name
and
size
in or below the directory specified by path
and writes the file names to the standard output. Matching files
use at least size
bytes on disk if size
is positive,
or at most abs(size)
bytes if size
is zero or
negative.
The files names written to the output are paths relative to the
specified path
operand.
find
in interface Find.Interface<FindCommand>
options
- Options for the file search.path
- Starting point for the search in the directory hierarchy;
wildcards * and ? are supported; relative paths are resolved on the
basis of the current working directory.size
- Consider only files using at least size
bytes if size
is positive, or at most abs(size)
bytes if size
is zero
or negative.name
- Name pattern to match the file name after removing the path with the
leading directories; wildcards * and ? are supported, or full
regular expressions if either of the options -regex (-r)
or
-iregex (-i)
is specified.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(FindOptions options, Date time, String name)
Find.Interface
name
that have been
created, modified or accessed before or after the specified
time
(depending on the given -time...
options). The
names of the matching files found in or below the user's current
working directory are written to the standard output.
The files names written to the output are relative paths referring to the working directory.
find
in interface Find.Interface<FindCommand>
options
- Options for the file search.time
- Consider only files that have been created, modified or accessed
before or after the specified time
operand; consider the
-time...
options for details of the comparison.name
- Name pattern to match the file name after removing the path with the
leading directories; wildcards * and ? are supported, or full
regular expressions if either of the options -regex (-r)
or
-iregex (-i)
is specified.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(FindOptions options, String path, Date time, String name)
Find.Interface
name
that have been
created, modified or accessed before or after the specified
time
(depending on the given -time...
options). The
names of the matching files found in or below the directory
specified by path
are written to the standard output.
The files names written to the output are paths relative to the
specified path
operand.
find
in interface Find.Interface<FindCommand>
options
- Options for the file search.path
- Starting point for the search in the directory hierarchy;
wildcards * and ? are supported; relative paths are resolved on the
basis of the current working directory.time
- Consider only files that have been created, modified or accessed
before or after the specified time
operand; consider the
-time...
options for details of the comparison.name
- Name pattern to match the file name after removing the path with the
leading directories; wildcards * and ? are supported, or full
regular expressions if either of the options -regex (-r)
or
-iregex (-i)
is specified.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(FindOptions options, long size, Date time, String name)
Find.Interface
name
and size
and
have been created, modified or accessed before or after the specified
time
(depending on the given -time...
options).
Matching files use at least size
bytes on disk if
size
is positive, or at most abs(size)
bytes if
size
is zero or negative. The names of the matching files
found in or below the user's current working directory are written
to the standard output.
The files names written to the output are relative paths referring to the working directory.
find
in interface Find.Interface<FindCommand>
options
- Options for the file search.size
- Consider only files using at least size
bytes if size
is positive, or at most abs(size)
bytes if size
is zero
or negative.time
- Consider only files that have been created, modified or accessed
before or after the specified time
operand; consider the
-time...
options for details of the comparison.name
- Name pattern to match the file name after removing the path with the
leading directories; wildcards * and ? are supported, or full
regular expressions if either of the options -regex (-r)
or
-iregex (-i)
is specified.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailspublic FindCommand find(FindOptions options, String path, long size, Date time, String name)
Find.Interface
name
and size
and
have been created, modified or accessed before or after the specified
time
(depending on the given -time...
options).
Matching files use at least size
bytes on disk if
size
is positive, or at most abs(size)
bytes if
size
is zero or negative. The names of the matching files
found in or below the directory specified by path
are
written to the standard output.
The files names written to the output are paths relative to the
specified path
operand.
find
in interface Find.Interface<FindCommand>
options
- Options for the file search.path
- Starting point for the search in the directory hierarchy;
wildcards * and ? are supported; relative paths are resolved on the
basis of the current working directory.size
- Consider only files using at least size
bytes if size
is positive, or at most abs(size)
bytes if size
is zero
or negative.time
- Consider only files that have been created, modified or accessed
before or after the specified time
operand; consider the
-time...
options for details of the comparison.name
- Name pattern to match the file name after removing the path with the
leading directories; wildcards * and ? are supported, or full
regular expressions if either of the options -regex (-r)
or
-iregex (-i)
is specified.<R>
defined by the implementing class;
the command itself returns no value and writes its result to the
standard output; see class level parameter comments for more
detailsCopyright © 2024. All rights reserved.