Skip to content

Commit 7412193

Browse files
author
Brian Burkhalter
committed
4800398: (ch spec) Clarify Channels.newChannel(InputStream) spec
Reviewed-by: alanb
1 parent e7726fb commit 7412193

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/java.base/share/classes/java/nio/channels/Channels.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)