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<String></code> containing the lines of text described by this <code>BufferedReader</code>
*/
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<String></code> containing the lines of text described by this <code>BufferedReader</code>
*/