T - the type of the result of processing the lines seenpublic 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.
Characters.readLines(InputSupplier, LineProcessor),
Files#readLines(java.io.File, java.nio.charset.Charset, LineProcessor),
Resources#readLines(java.net.URL, java.nio.charset.Charset, LineProcessor)| Modifier and Type | Method and Description |
|---|---|
T |
getResult() |
boolean |
processLine(java.lang.String line)
This method will be called once for each line.
|
boolean processLine(java.lang.String line)
throws java.io.IOException
java.io.IOExceptionT getResult()