Package com.google.common.io
Class LineReader
-
- com.google.common.io.LineReader
-
@Beta @GwtIncompatible public final class LineReader extends
A class for reading lines of text. Provides the same functionality as but for all objects, not just instances of .- Since:
- 1.0
- Author:
- Chris Nokleberg
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description readLine()
Reads a line of text.
-
-
-
Method Detail
-
readLine
public readLine() throws
Reads a line of text. A line is considered to be terminated by any one of a line feed ('\n'
), a carriage return ('\r'
), or a carriage return followed immediately by a linefeed ("\r\n"
).- Returns:
- a
String
containing the contents of the line, not including any line-termination characters, ornull
if the end of the stream has been reached. - Throws:
- if an I/O error occurs
-
-