abstract class AbstractHeadProcessor extends AbstractLineProcessor<HeadArguments>
HeadCommand
.Modifier and Type | Field and Description |
---|---|
protected long |
count |
protected Counter |
counter |
Constructor and Description |
---|
AbstractHeadProcessor(HeadCommand command,
ExecutionContext context,
LineProcessor output) |
Modifier and Type | Method and Description |
---|---|
void |
finish()
Indicates that this line processing task is complete and can finished.
|
void |
resetCounter() |
getArguments, getCommand, getContext, getOutput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processLine
public AbstractHeadProcessor(HeadCommand command, ExecutionContext context, LineProcessor output)
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.
public void resetCounter()
Copyright © 2024. All rights reserved.