Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8260694: (fc) Clarify FileChannel.transferFrom to better describe "no…
… bytes available" case

Reviewed-by: alanb
  • Loading branch information
Hamlin Li committed Feb 19, 2021
1 parent 1b0c36b commit a180a38
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -642,7 +642,8 @@ public abstract long transferTo(long position, long count,
* number of bytes will be transferred if the source channel has fewer than
* {@code count} bytes remaining, or if the source channel is non-blocking
* and has fewer than {@code count} bytes immediately available in its
* input buffer.
* input buffer. No bytes are transferred, and zero is returned, if the
* source has reached end-of-stream.
*
* <p> This method does not modify this channel's position. If the given
* position is greater than the file's current size then no bytes are
Expand Down

1 comment on commit a180a38

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.