public static class GlobalProcessor.Normal extends GlobalProcessor
global
option is selected.GlobalProcessor.Count, GlobalProcessor.DuplicateOnly, GlobalProcessor.Normal, GlobalProcessor.UniqueDuplicateCount, GlobalProcessor.UniqueOnly
lineToCount
Constructor and Description |
---|
Normal(UniqCommand command,
ExecutionContext context,
LineProcessor output) |
Modifier and Type | Method and Description |
---|---|
void |
finish()
Indicates that this line processing task is complete and can finished.
|
protected boolean |
processLine(Line line,
LineProcessor output) |
processLine
getArguments, getCommand, getContext, getOutput
public Normal(UniqCommand command, ExecutionContext context, LineProcessor output)
protected boolean processLine(Line line, LineProcessor output)
processLine
in class UniqProcessor
public void finish()
LineProcessor
Simple output devices usually perform a flush
operation in this
method. More complex commands may perform the real operation in this
method, for instance write the total count of lines or words to the
target file or stream.
Copyright © 2024. All rights reserved.