Skip to content

Commit c9efc47

Browse files
kofemannGoogle Java Core Libraries
authored and
Google Java Core Libraries
committedJun 26, 2023
Describe alternative for ByteStreams#copy.
Fixes #5706 RELNOTES=n/a PiperOrigin-RevId: 543462774
1 parent 8720b6b commit c9efc47

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
 

‎android/guava/src/com/google/common/io/ByteStreams.java

+3
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ private ByteStreams() {}
100100
* Copies all bytes from the input stream to the output stream. Does not close or flush either
101101
* stream.
102102
*
103+
* <p><b>Java 9 users and later:</b> this method should be treated as deprecated; use the
104+
* equivalent {@link InputStream#transferTo} method instead.
105+
*
103106
* @param from the input stream to read from
104107
* @param to the output stream to write to
105108
* @return the number of bytes copied

‎guava/src/com/google/common/io/ByteStreams.java

+3
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ private ByteStreams() {}
100100
* Copies all bytes from the input stream to the output stream. Does not close or flush either
101101
* stream.
102102
*
103+
* <p><b>Java 9 users and later:</b> this method should be treated as deprecated; use the
104+
* equivalent {@link InputStream#transferTo} method instead.
105+
*
103106
* @param from the input stream to read from
104107
* @param to the output stream to write to
105108
* @return the number of bytes copied

0 commit comments

Comments
 (0)