• Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • None
    • core-libs
    • None
    • b91
    • Verified

      Add a method
        Stream<String> lines()
      to BufferedReader. Candidate spec follows.

          /**
           * Returns a <code>{@link Stream}</code> describing lines read from this <code>BufferedReader</code>.
           * The <code>Stream</code> is lazily populated via calls to <code>{@link readLine()}</code>. Multiple
           * calls to <code>lines()</code> on a given <code>BufferedReader</code> will result in returning the
           * same <code>Stream</code> object.
           *
           * If an <code>IOException</code> is thrown when accessing the underlying <code>BufferedReader</code>, it
           * is wrapped in an <code>{@link UncheckedIOException}</code> which will be thrown from the <code>Stream</code>
           * method that caused the read to take place.
           *
           * @return a <code>Stream&lt;String&gt;</code> containing the lines of text described by this <code>BufferedReader</code>
           */

            henryjen Henry Jen
            briangoetz Brian Goetz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: