public final class CatFactory extends Object implements Cat.Interface<CatCommand>
cat command returning
a new command instance from every signature method.| Modifier and Type | Field and Description |
|---|---|
static CatFactory |
INSTANCE
The singleton instance of this factory.
|
| Modifier and Type | Method and Description |
|---|---|
CatCommand |
cat()
Reads the lines from the standard input and writes them to the
standard output.
|
CatCommand |
cat(CatOptions options)
Reads the lines from the standard input and writes them to the
standard output; the given options define the details of the output
format.
|
CatCommand |
cat(CatOptions options,
File... files)
Reads the lines from the specified files and writes them to the
standard output; the given options define the details of the output
format.
|
CatCommand |
cat(CatOptions options,
Input... inputs)
Reads the lines from the specified inputs and writes them to the
standard output; the given options define the details of the output
format.
|
CatCommand |
cat(CatOptions options,
String... paths)
Reads the lines from the specified files and writes them to the
standard output; the given options define the details of the output
format.
|
CatCommand |
cat(File... files)
Reads the lines from the specified files and writes them to the
standard output.
|
CatCommand |
cat(Input... inputs)
Reads the lines from the specified inputs and writes them to the
standard output.
|
CatCommand |
cat(String... args)
Reads the lines from files specified as arguments and writes them to
the standard output.
|
public static final CatFactory INSTANCE
public CatCommand cat()
Cat.Interfacecat in interface Cat.Interface<CatCommand><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 CatCommand cat(String... args)
Cat.Interfacecat in interface Cat.Interface<CatCommand>args - String arguments defining the options and file operands for the
command. Options can be specified by acronym (with a leading dash
"-") or by long name (with two leading dashes "--"). File arguments
are expanded if wildcards are used.<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 CatCommand cat(File... files)
Cat.Interfacecat in interface Cat.Interface<CatCommand>files - The input files to be printed; relative paths are not resolved (use
the string path 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
detailspublic CatCommand cat(Input... inputs)
Cat.Interfacecat in interface Cat.Interface<CatCommand>inputs - The inputs to be printed.<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 CatCommand cat(CatOptions options)
Cat.Interfacecat in interface Cat.Interface<CatCommand>options - Options for the cat command.<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 CatCommand cat(CatOptions options, File... files)
Cat.Interfacecat in interface Cat.Interface<CatCommand>options - Options for the cat command.files - The input files to be printed; relative paths are not resolved (use
the string path 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
detailspublic CatCommand cat(CatOptions options, String... paths)
Cat.Interfacecat in interface Cat.Interface<CatCommand>options - Options for the cat command.paths - Path names of the input files to be printed; 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 CatCommand cat(CatOptions options, Input... inputs)
Cat.Interfacecat in interface Cat.Interface<CatCommand>options - Options for the cat command.inputs - The inputs to be printed.<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 © 2025. All rights reserved.