Class LineReader

java.lang.Object
com.google.common.io.LineReader

@Beta @Deprecated(since="2022-12-01") public final class LineReader extends Object
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
A class for reading lines of text. Provides the same functionality as BufferedReader.readLine() but for all Readable objects, not just instances of Reader.
Since:
1.0
  • Constructor Details

    • LineReader

      public LineReader(Readable readable)
      Deprecated.
      Creates a new instance that will read lines from the given Readable object.
  • Method Details

    • readLine

      public String readLine() throws 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, or null if the end of the stream has been reached.
      Throws:
      IOException - if an I/O error occurs