final class HeadLinesProcessor extends AbstractHeadProcessor
count, counter
Constructor and Description |
---|
HeadLinesProcessor(HeadCommand command,
ExecutionContext context,
LineProcessor output) |
Modifier and Type | Method and Description |
---|---|
boolean |
processLine(Line line)
Processes a single line and returns true if this
LineProcessor is
ready to process more lines. |
finish, resetCounter
getArguments, getCommand, getContext, getOutput
HeadLinesProcessor(HeadCommand command, ExecutionContext context, LineProcessor output)
public boolean processLine(Line line)
LineProcessor
LineProcessor
is
ready to process more lines. Returning false indicates that the process
can be finished
because subsequent lines would not
change the result anyway.line
- the line to processLineProcessor
is ready to process more
lines, and false if it does not require any more input linesCopyright © 2024. All rights reserved.