@Beta @GwtIncompatible public interface LineProcessor<T>
readLines
methods.
processLine(java.lang.String)
will be called for each line that is read, and should return false
when you want to stop processing.
Modifier and Type | Method and Description |
---|---|
T |
getResult()
Return the result of processing all the lines.
|
boolean |
processLine(java.lang.String line)
This method will be called once for each line.
|
@CanIgnoreReturnValue boolean processLine(java.lang.String line) throws java.io.IOException
line
- the line read from the input, without delimiterjava.io.IOException
Copyright © 2010–2021. All rights reserved.