jdk/src/share/classes/java/io/BufferedReader.java
changeset 21954 df1d668d6e23
parent 18822 4b6be7c19547
child 21971 284411f25f79
equal deleted inserted replaced
21953:3facfc87b92e 21954:df1d668d6e23
   531     }
   531     }
   532 
   532 
   533     /**
   533     /**
   534      * Returns a {@code Stream}, the elements of which are lines read from
   534      * Returns a {@code Stream}, the elements of which are lines read from
   535      * this {@code BufferedReader}.  The {@link Stream} is lazily populated,
   535      * this {@code BufferedReader}.  The {@link Stream} is lazily populated,
   536      * i.e, read only occurs during the
   536      * i.e., read only occurs during the
   537      * <a href="../util/stream/package-summary.html#StreamOps">terminal
   537      * <a href="../util/stream/package-summary.html#StreamOps">terminal
   538      * stream operation</a>.
   538      * stream operation</a>.
   539      *
   539      *
   540      * <p> The reader must not be operated on during the execution of the
   540      * <p> The reader must not be operated on during the execution of the
   541      * terminal stream operation. Otherwise, the result of the terminal stream
   541      * terminal stream operation. Otherwise, the result of the terminal stream
   548      * <p> If an {@link IOException} is thrown when accessing the underlying
   548      * <p> If an {@link IOException} is thrown when accessing the underlying
   549      * {@code BufferedReader}, it is wrapped in an {@link
   549      * {@code BufferedReader}, it is wrapped in an {@link
   550      * UncheckedIOException} which will be thrown from the {@code Stream}
   550      * UncheckedIOException} which will be thrown from the {@code Stream}
   551      * method that caused the read to take place. This method will return a
   551      * method that caused the read to take place. This method will return a
   552      * Stream if invoked on a BufferedReader that is closed. Any operation on
   552      * Stream if invoked on a BufferedReader that is closed. Any operation on
   553      * that stream requires reading from the BufferedReader after is it closed
   553      * that stream that requires reading from the BufferedReader after it is
   554      * will cause an UncheckedIOException to be thrown.
   554      * closed, will cause an UncheckedIOException to be thrown.
   555      *
   555      *
   556      * @return a {@code Stream<String>} providing the lines of text
   556      * @return a {@code Stream<String>} providing the lines of text
   557      *         described by this {@code BufferedReader}
   557      *         described by this {@code BufferedReader}
   558      *
   558      *
   559      * @since 1.8
   559      * @since 1.8