public interface LineProcessor extends Closeable
InputReaderusually with help of the
When the implementation is used just by single bridge it does not have to be thread safe.
|Modifier and Type||Method and Description|
Closes the processor releasing the resources held by it.
Processes the line.
Notifies the processor that it should reset its state.
void processLine(@NonNull String line)
line- the line to process
The circumstances when this method is called must be defined by the code using this class.
InputProcessors.bridge(LineProcessor)delegates any call to
InputProcessor.reset()to this method.