This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git


The following commit(s) were added to refs/heads/master by this push:
     new f8f1a66db Deprecate IOUtils.copyRange(InputStream, long, OutputStream, 
int)
f8f1a66db is described below

commit f8f1a66db38b71fabd1deed414b429df0ea4cd6e
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Jan 14 16:07:22 2024 -0500

    Deprecate IOUtils.copyRange(InputStream, long, OutputStream, int)
---
 src/changes/changes.xml                                      | 3 ++-
 src/main/java/org/apache/commons/compress/utils/IOUtils.java | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 460fe58bb..00bcfc6eb 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -68,7 +68,8 @@ The <action> type attribute can be add,update,fix,remove.
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate unused 
method FileNameUtils.getBaseName(String).</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate unused 
method FileNameUtils.getExtension(String).</action>
       <action type="fix" dev="ggregory" due-to="Gary 
Gregory">ArchiveInputStream.BoundedInputStream.read() incorrectly adds 1 for 
EOF to the bytes read count.</action>
-      <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate 
org.apache.commons.compress.utils.IOUtils.read(File, byte[]).</action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate 
IOUtils.read(File, byte[]).</action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate 
IOUtils.copyRange(InputStream, long, OutputStream, int).</action>
       <!-- ADD -->
       <action type="add" dev="ggregory" due-to="Gary Gregory">Add 
ZipFile.builder(), add ZipFile.Builder, deprecated constructors.</action>     
       <!-- UPDATE -->
diff --git a/src/main/java/org/apache/commons/compress/utils/IOUtils.java 
b/src/main/java/org/apache/commons/compress/utils/IOUtils.java
index f7cc79451..5df258043 100644
--- a/src/main/java/org/apache/commons/compress/utils/IOUtils.java
+++ b/src/main/java/org/apache/commons/compress/utils/IOUtils.java
@@ -131,7 +131,9 @@ public final class IOUtils {
      * @throws IOException              if an error occurs
      * @throws IllegalArgumentException if bufferSize is smaller than or equal 
to 0
      * @since 1.21
+     * @deprecated No longer used.
      */
+    @Deprecated
     public static long copyRange(final InputStream input, final long len, 
final OutputStream output, final int bufferSize) throws IOException {
         if (bufferSize < 1) {
             throw new IllegalArgumentException("bufferSize must be bigger than 
0");

Reply via email to