Skip to content

Commit

Permalink
Describe alternative for ByteStreams#copy.
Browse files Browse the repository at this point in the history
Fixes #5706

RELNOTES=n/a
PiperOrigin-RevId: 543462774
  • Loading branch information
kofemann authored and Google Java Core Libraries committed Jun 26, 2023
1 parent 8720b6b commit c9efc47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions android/guava/src/com/google/common/io/ByteStreams.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ private ByteStreams() {}
* Copies all bytes from the input stream to the output stream. Does not close or flush either
* stream.
*
* <p><b>Java 9 users and later:</b> this method should be treated as deprecated; use the
* equivalent {@link InputStream#transferTo} method instead.
*
* @param from the input stream to read from
* @param to the output stream to write to
* @return the number of bytes copied
Expand Down
3 changes: 3 additions & 0 deletions guava/src/com/google/common/io/ByteStreams.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ private ByteStreams() {}
* Copies all bytes from the input stream to the output stream. Does not close or flush either
* stream.
*
* <p><b>Java 9 users and later:</b> this method should be treated as deprecated; use the
* equivalent {@link InputStream#transferTo} method instead.
*
* @param from the input stream to read from
* @param to the output stream to write to
* @return the number of bytes copied
Expand Down

0 comments on commit c9efc47

Please sign in to comment.