![JAR search and dependency download from the Maven repository](/logo.png)
javadoc.com.google.common.io.LineProcessor.html Maven / Gradle / Ivy
The newest version!
LineProcessor (Guava: Google Core Libraries for Java 11.0.1 API)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
com.google.common.io
Interface LineProcessor<T>
@Beta
public 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.
- Since:
- 1.0
- Author:
- Miles Barr
Method Summary | |
---|---|
T |
getResult()
Return the result of processing all the lines. |
boolean |
processLine(String line)
This method will be called once for each line. |
Method Detail |
---|
processLine
boolean processLine(String line) throws IOException
- This method will be called once for each line.
- Parameters:
line
- the line read from the input, without delimiter- Returns:
- true to continue processing, false to stop
- Throws:
IOException
getResult
T getResult()
- Return the result of processing all the lines.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010-2012. All Rights Reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy