public class RedirectInputLineProcessor extends MultipleInputLineProcessor
Input
stream to the standard input
of a command. The command here is another LineProcessor
reading the
lines passed to it. If a command supports both (a) reading from the standard
input and (b) input from a file, it implements a processor for (a) and reuses
this processor for (b) nested in a RedirectInputLineProcessor
.
The (standard) input is not read by this processor. See superclass
MultipleInputLineProcessor
for more information.
Constructor and Description |
---|
RedirectInputLineProcessor(Input input,
LineProcessor standardInputProcessor)
Constructor with input object (usually a file operand of the command) and
the command processor that reads from the standard input.
|
RedirectInputLineProcessor(List<? extends Input> inputs,
LineProcessor standardInputProcessor)
Constructor with multiple input objects (usually file operands of the
command) and the command processor that reads from the standard input.
|
beginMultiple, finish, finishMultiple, processLine
public RedirectInputLineProcessor(Input input, LineProcessor standardInputProcessor)
input
- the input device, usually a file operand of the commandstandardInputProcessor
- the processor performing the command operation based on lines
from the standard inputpublic RedirectInputLineProcessor(List<? extends Input> inputs, LineProcessor standardInputProcessor)
finish()
method of the standardInputProcessor
is called
after completing the last line of the last input.inputs
- the input devices, usually file operands of the commandstandardInputProcessor
- the processor performing the command operation based on lines
from the standard inputCopyright © 2024. All rights reserved.