Package com.google.common.io
Class LineReader
- java.lang.Object
-
- com.google.common.io.LineReader
-
@Beta @Deprecated(since="2022-12-01") public final class LineReader extends java.lang.Object
Deprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023A class for reading lines of text. Provides the same functionality asBufferedReader.readLine()
but for allReadable
objects, not just instances ofReader
.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description LineReader(java.lang.Readable readable)
Deprecated.Creates a new instance that will read lines from the givenReadable
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
readLine()
Deprecated.Reads a line of text.
-
-
-
Method Detail
-
readLine
public java.lang.String readLine() throws java.io.IOException
Deprecated.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:
java.io.IOException
- if an I/O error occurs
-
-