File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/java.base/share/classes/java/nio/channels Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -260,8 +260,10 @@ public void close() throws IOException {
260260 * Constructs a channel that reads bytes from the given stream.
261261 *
262262 * <p> The resulting channel will not be buffered; it will simply redirect
263- * its I/O operations to the given stream. Closing the channel will in
264- * turn cause the stream to be closed. </p>
263+ * its I/O operations to the given stream. Reading from the resulting
264+ * channel will read from the input stream and thus block until input is
265+ * available or end of file is reached. Closing the channel will in turn
266+ * cause the stream to be closed. </p>
265267 *
266268 * @param in
267269 * The stream from which bytes are to be read
You can’t perform that action at this time.
0 commit comments