|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
T - the type of the result of processing the lines seenpublic interface LineProcessor<T>
A callback to be used with the streaming 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)| Method Summary | |
|---|---|
T |
getResult()
|
boolean |
processLine(java.lang.String line)
This method will be called once for each line. |
| Method Detail |
|---|
boolean processLine(java.lang.String line)
throws java.io.IOException
java.io.IOExceptionT getResult()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||