R
- the generic return type for all command signature methods
to support different implementor types; the methods of a
command factory for instance returns a command instance;
command builders can also implement this interface, but their
methods return the builder itself enabling for chained method
invocation to create joined commandspublic static interface Wc.Interface<R> extends CommandInterface<R>
Modifier and Type | Method and Description |
---|---|
R |
wc()
Executes a count of lines, words and chars contained in the standard
input and writes them to the standard output.
|
R |
wc(File... files)
Executes a count of lines, words and chars contained in each input
file and writes them to the standard output.
|
R |
wc(Input... inputs)
Executes a count of lines, words and chars contained in each input
and writes them to the standard output.
|
R |
wc(String... args)
One or several counts are executed and written to the standard
output.
|
R |
wc(WcOptions options)
Executes a one or more counts, depending on the given options, in
the standard input and writes them to the standard output.
|
R |
wc(WcOptions options,
File... files)
Executes a one or more counts, depending on the given options, in
each of the given input files and writes them to the standard
output.
|
R |
wc(WcOptions options,
Input... inputs)
Executes a one or more counts, depending on the given options, in
each of the given inputs and writes them to the standard
output.
|
R |
wc(WcOptions options,
String[] paths)
Executes a one or more counts, depending on the given options, in
each of the given input files and writes them to the standard
output.
|
R wc()
<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
detailsR wc(String... args)
Options can be specified by acronym (with a leading dash "-") or by long name (with two leading dashes "--"). Operands other than the default "--paths" operand have to be prefixed with the operand name.
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 "--paths" operand have to be prefixed with the operand
name.<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
detailsR wc(File... files)
files
- The input files; relative paths are not resolved (use the string
paths argument to enable relative path resolving based on 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
detailsR wc(Input... inputs)
inputs
- The inputs.<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
detailsR wc(WcOptions options)
options
- The options defining command behavior.<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
detailsR wc(WcOptions options, File... files)
options
- The options defining command behavior.files
- The input files; relative paths are not resolved (use the string
paths argument to enable relative path resolving based on 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
detailsR wc(WcOptions options, String[] paths)
options
- The options defining command behavior.paths
- Path names of the input files; 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
detailsR wc(WcOptions options, Input... inputs)
options
- The options defining command behavior.inputs
- The inputs.<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.